The second question, there were 227 sweets at first, and A and B took sweets from the parcel alternately and incrementally. At the same time, the question tells us that A * * takes 1 17, which means that the amount he took from the parcel last time was less than that taken by B+1. Only in this way can B not take it after A takes it. Moreover, the quantity taken by A is as follows:1/3/5/7/9/13/15/17/19/21/. N take 1 1, that is, you should take 2 1 dessert, because the previous1+3+5+7+9+1+13+/kloc. When it was time to take 2 1 candy, A actually only took the remaining 17, and the game was over. So the number of b is 2+4+6+8+10+12+14+16+18+20 =16. There were 227 at first.
I wonder if you can understand this.