dajiayiqizuoyouxi

所属分类:游戏
开发工具:Visual C++
文件大小:6KB
下载次数:2
上传日期:2014-12-06 20:23:23
上 传 者Bruce_shao
说明:  幼儿园的小朋友们刚学习了如何数数,阿姨在下课时组织大家一起玩游戏。规则如下:所有的小朋友绕成一圈,顺序排号,从第一个小朋友开始报数,凡是报到固定数字(例如5)的,都退出该游戏,直到只剩下一位小朋友游戏才中止。 每个小朋友都希望自己能有更多的练习数数的机会,所以都希望成为最终被留下的那位。 现在,请大家帮小朋友们计算一下,在第一次排号的时候排到第几位才能成为最终被留下的小朋友。 输入: 小朋友的个数(<=50) 要被练习的数字 输出: 最终被留下的小朋友的序号 说明: 如“要被练习的数字”是5,则每次数到5的同学要退出该游戏
(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)

文件列表:
大家一起做游戏.cpp (487, 2012-04-19)
大家一起做游戏.dsp (3499, 2012-04-18)
大家一起做游戏.dsw (536, 2012-04-18)
大家一起做游戏.ncb (41984, 2012-04-22)
大家一起做游戏.opt (53760, 2012-04-22)
大家一起做游戏.plg (1380, 2012-04-19)

近期下载者

相关文件


收藏者