The topic is: "An American is doing business in a vegetable market. The first time, I bought a chicken for 8 yuan and sold it for 9 yuan. The second time, I bought the same chicken for 10, and sold it for 1 1. So, did the Americans lose or win? If you lose money, how much should you lose? If so, how much? " The answer to this question is not unique. At that time, there was an American and a Japanese, and the third person was Shen Nanpeng. Three people gave three different answers: Americans think they earned $2; The Japanese think it is a loss of $2; Shen Nanpeng thought it was a loss of $4.
Americans explain it this way: the same chicken, buy one for the first time, buy one for the second time. The first round of trading: 8 buy 9 sell, 9-8= 1, earned 1 USD. The second transaction: 10 buy 1 1 sell, 1-10 =1,earned1USD. The two transactions add up: 1+ 1=2, so I made 2 yuan.
The Japanese calculation is this: buy two chickens at a time. The first transaction: 8 buy 9 sell, 9-8= 1, earned 1 USD. The second transaction: 8 buy 1 1 sell, 1 1-8=3, and earned 3 yuan. Adding up the two transactions: 1+3=4, he could have earned 4 dollars, but he only earned 2 dollars, so he lost 2 dollars.
Shen Nanpeng thinks so: if you buy two chickens at a time, you can earn 6 dollars in one-time transaction: 1 1 sell 8 chickens, (1 1-8)*2=6 chickens. However, he only earned 2 dollars, so he lost 4 dollars.
Shen Nanpeng's answer was novel and interesting, which satisfied the interviewer of Citibank. In this way, with his excellent mathematical ability and logical analysis ability, he finally ended the days of running around looking for a job and began his career in Citibank Wall Street Branch.
Focus on code HC, a thinker who loves to learn and share.