wu :: forums
« wu :: forums - Fruit Addition »

Welcome, Guest. Please Login or Register.
Apr 28th, 2024, 2:33pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   microsoft
(Moderators: SMQ, william wu, Grimbal, ThudnBlunder, Eigenray, Icarus, towr)
   Fruit Addition
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Fruit Addition  (Read 4327 times)
kiki lee
Guest

Email

Fruit Addition  
« on: Jun 25th, 2003, 9:53am »
Quote Quote Modify Modify Remove Remove

This is a interview question from MS
       p e a r  
     a p p l e  
     l e m o n  
+ b a n a n a  
-------------  
= o r a n g e  
 
Each letter represents a different number from 0-9, p,a,l,b,o will not be zero. What is the number for each letter
 
Thread title modified by James 2003-09-17
« Last Edit: Sep 17th, 2003, 10:33am by James Fingas » IP Logged
Moonz
Guest

Email

Re: MS question1  
« Reply #1 on: Jul 28th, 2003, 11:44am »
Quote Quote Modify Modify Remove Remove


Solved by brute force :

A=8 B=1 E=7 G=6 L=4 M=5 N=0 O=3 P=9 R=2

« Last Edit: Aug 12th, 2003, 6:52am by william wu » IP Logged
somu
Newbie
*





   


Gender: male
Posts: 5
Re: MS question1  
« Reply #2 on: Aug 12th, 2003, 6:37am »
Quote Quote Modify Modify

 Would u like to tell me how did u solve that ?
Hope that was't come out of trial & error method .....
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: MS question1  
« Reply #3 on: Aug 12th, 2003, 7:31am »
Quote Quote Modify Modify

as he said, brute force.
brute force = (use a computer to) try every possible answer, and take the (first) one(s) that actually solves the problem
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Armtusk J
Guest

Email

Re: MS question1  
« Reply #4 on: Sep 17th, 2003, 10:19am »
Quote Quote Modify Modify Remove Remove

The above problem cannot be solved if the letters are all positive numbers (0-9) and 'a' is not 0. Since the last letter of  the total is 'e' (orange) and it is the sum of 'e' + 'n' + 'a' and since 'a' > 0, then 'e' must also be > 0 which is impossible unless 'n' < 0, which then disagrees with the given requirements.
IP Logged
James Fingas
Uberpuzzler
*****





   
Email

Gender: male
Posts: 949
Re: MS question1  
« Reply #5 on: Sep 17th, 2003, 10:32am »
Quote Quote Modify Modify

In the solution, you are allowed to "carry". That means that 'a' + 'e' + 'n' must be 10 or 20.
IP Logged

Doc, I'm addicted to advice! What should I do?
Sir Col
Uberpuzzler
*****




impudens simia et macrologus profundus fabulae

   
WWW

Gender: male
Posts: 1825
Re: MS question1  
« Reply #6 on: Sep 26th, 2003, 5:39pm »
Quote Quote Modify Modify

To confirm Moonz's result, there is one solution:
pear+apple+lemon+banana=orange
9782+89947+47530+180808=328067

 
OR
 

  pear     9782
 apple    89947
 lemon    47530
banana   180808
______   ______
orange   328067
IP Logged

mathschallenge.net / projecteuler.net
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board