Description: 四人玩火柴棍游戏,每一次都是三个人赢,一个人输。输的人要按赢者手中的火柴
数进行赔偿,即赢者手中有多少根火柴棍,输者就赔偿多少根。现知道玩过四次后,
每人恰好输过一次, 而且每人手中都正好有16根火柴。问此四人做游戏前手中各有
多少根火柴? 编程解决此问题。-Four matches to play club games, every time the three win, lose one. Losers who should win a few matches their compensation, that is, the number of hands to win match stick, the number of losers on the compensation root. Played four times now to know, the person happens to lose one, and each of the hands are exactly 16 matches. Asked to do the four games before the match the hands of the respective numbers? Programming to solve this problem. Platform: |
Size: 1024 |
Author:lcch |
Hits: