two MIT math grads bump into each other at Fairway on the
upper west side. they haven't seen each other in over 20 years.
the first grad says to the second: "how have you been?"
second: "great! i got married and i have three daughters now"
first: "really? how old are they?"
second: "well, the product of their ages is 72, and the sum
of their ages is the same as the number on that building
over there.."
first: "right, ok.. oh wait.. hmm, i still don't know"
second: "oh sorry, the oldest one just started to play the
piano"
first: "wonderful! my oldest is the same age!"
problem: how old are the daughters?
Answer Posted / sushil
solution: start with what you know. you know there are 3
daughters whose ages multiply to 72. let's look at the
possibilities...
Ages: Sum of ages:
1 1 72 74
1 2 36 39
1 3 24 28
1 4 18 23
1 6 12 19
1 8 9 18
2 2 18 22
2 3 12 17
2 4 9 15
2 6 6 14
3 3 8 14
3 4 6 13
Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Given an array all of whose elements are positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. So 3 2 7 10 should return 13 (sum of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and 7)
Bonjour, svp je veut voir comment envoyer un mail en java et comment changer le droit d'accé d'un fichier en java: de lecture en lecture/écriture et merci d'avance ;)
what are the activities you enjoy most and How do you see these Developing in the Future with Reference to in your work life and in your personal life
Diff between IF and where ?
What is Negative testing?
what is the work of 1tier,2tier,&ntier? Plz Explain it!
What is the Difference between in memory database and physical database
Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik
How to get the index of the clicked field in reports in ABAP?
what is the similarity between networking devices?
hi i m deepak my shedule for NIC pi is 17 Apr please contact me if anybody has interview on same day or give me some idea who have faced
What binary value will be internally stored for NULL for the type S9(1) COMP 3 in mainframe
Hi can you please send me recent(present) interview questions and technical qyestions with answers for "BUSSIESS OBJECTS" and "DATA WAREHOUSE".pls its urgent for me my mail id is sekhar.cs82@gmail.com,manjuforgis@gmail.com. thanks in advance
How to call dll API sub routine in VB Form.
code for connection from windows forms to sql server