Reprint Please specify source: http://blog.csdn.net/xiaojimanman/article/details/47420005
Http://www.llwjy.com/blogdetail/e5c2ae36db9a4e5fac02e2394d6c9ee4.html
Personal Blog Station has been online, the website www.llwjy.com ~ welcome you to vomit Groove ~
-------------------------------------------------------------------------------------------------
Problem description
IBM written question: A census clerk asked a woman, "How many children do you have and how old are they?" "The woman replied:" I have three children, their age is multiplied by 36, the old is equal to the next house number. "The census clerk immediately went to the side room and looked at it and said," I need some more information. The woman replied, "I am very busy now, my oldest child is sleeping upstairs." "The census clerk said:" Thank you, I know. Question: What is the age of the three children?
Final Answer
2 years, 2 years, 9 years old
Problem analysis
First we divided the woman, she said, "I have three children, their age is multiplied by 36", so we can do a prime decomposition of 36, that is:1 * 2 * 2 * 3 * 3; Woman's second sentence, "Age equals the house number next door", We analyze the 3-number multiplication of 36, and the results are as follows:
After looking at the house number, the census clerk said, "I need some more information," which means I know and, but the solution is not the only case, so we can infer that the age of three children is equalto three, that is, 1-6-6 and 2-2-9, and then the woman said a sentence " My oldest child is upstairs sleeping ", from this sentence can be launched only one of the largest, so the possible result is:2, 2, 9 years old.
-------------------------------------------------------------------------------------------------
Small welfare
-------------------------------------------------------------------------------------------------
Individual at the Geek College, "Lucene case development" course has been launched (currently on the line to the second lesson), welcome everyone spit Groove ~
First lesson: Lucene Overview
Lesson Two: Introduction to Lucene common functions
Lesson Three: web crawler
Lesson Four: Database connection pooling
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Intellectual reasoning: What is the age of three children?