Description: Kindergarten children just learning how to count, aunt next class organization with everyone playing the game. Rules are as follows: All the kids around in a circle, the order Arranging Countin the first child, who report to a fixed number (eg 5), have quit the game, the game until only one child was aborted. Every child wants to be able to have more opportunities to practice counting, and so want to be the one who eventually left. Now, please help kids calculation, the first time Arranging routed to become the first of several children eventually left. Input: the number of children (< = 50) to be practicing digital output: eventually the number of children left behind Description: If " practice to be the number" 5, then each count to five students to quit the game
To Search:
File list (Check if you may need any files):
大家一起做游戏.cpp
大家一起做游戏.dsp
大家一起做游戏.dsw
大家一起做游戏.ncb
大家一起做游戏.opt
大家一起做游戏.plg