Depth understanding of IT / Internet industry and jobs, please refer to the general IT / Internet job recruitment program (the latest full version of Kong) .
Depth understanding of career advancement and learning routes, see the optimal path for career advancement courses and study guides (the latest full-stack version) .
Content navigation :
- 1, title
- 2, analysis
- 3, code implementation
- 4, operating results
1, title
There are five people sit together, the fifth person to ask how old? He said that 2 years older than 4 people. Asked individuals age 4, he said, is larger than 3 individuals 2 years of age. Asked a third person, said Congress two years than the second. He asked a second person, the first person to say more than two years older. Finally, ask the first man, he said, he is 10 years old. The fifth person to ask how much?
2, analysis
Refer to code.
3, the sample code
/*
作者:AT阿宝哥
日期:2016年9月18日
愿景:参考官方资料,做最好的课程,成就更多职业人!
邮箱:[email protected]
CSDN:https://blog.csdn.net/goldentec