problem-solving
Alice wants to know the ages of Bob's three children. Bob tells Alice that the product of the children's ages is 36. This is not enough information, so Alice asks for another clue. Bob tells Alice the sum of the children's ages. Again, this is not enough information. Bob tells Alice that the oldest child plays the piano. After hearing this clue, Alice correctly identifies the ages of the three children.
How old are they?
computer science no class de dasareta mondai desu.... kotae wakaranaindesukedo tasuketekudasai
I'll tell you some hint.(hidoieigodegomennasai)
* After 1st clue, Alice had 8 possible solusions.
* After 2nd clue, she calculated the sums of each possible solusion. Then she got 2 possibilities.
* After last clue, she got information about number of oldest child. Then she found the correct answer.
Alice wanted to know the ages of Bob's three children. Bob told Alice that the product of the children's ages is 36. This is not enough information, so Alice asked for another clue. Bob told Alice the sum of the children's ages. Again, this was not enough. Bob toled Alice that the oldest child plays piano. After hearing this, Alice identified correctly the ages of the three children.
How old were they?
0 件のコメント:
コメントを投稿