Author |
Topic: Fruit Addition (Read 4338 times) |
|
kiki lee
Guest
|
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
|
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:
Posts: 5
|
|
Re: MS question1
« Reply #2 on: Aug 12th, 2003, 6:37am » |
Quote 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:
Posts: 13730
|
|
Re: MS question1
« Reply #3 on: Aug 12th, 2003, 7:31am » |
Quote 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
|
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
Gender:
Posts: 949
|
|
Re: MS question1
« Reply #5 on: Sep 17th, 2003, 10:32am » |
Quote 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
Gender:
Posts: 1825
|
|
Re: MS question1
« Reply #6 on: Sep 26th, 2003, 5:39pm » |
Quote 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
|
|
|
|