文件名称:dajiayiqizuoyouxi
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2014-12-06
- 文件大小:
- 6kb
- 下载次数:
- 0次
- 提 供 者:
- 彭**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
幼儿园的小朋友们刚学习了如何数数,阿姨在下课时组织大家一起玩游戏。规则如下:所有的小朋友绕成一圈,顺序排号,从第一个小朋友开始报数,凡是报到固定数字(例如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 Descr iption: If " practice to be the number" 5, then each count to five students to quit the game
每个小朋友都希望自己能有更多的练习数数的机会,所以都希望成为最终被留下的那位。
现在,请大家帮小朋友们计算一下,在第一次排号的时候排到第几位才能成为最终被留下的小朋友。
输入:
小朋友的个数(<=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 Descr iption: If " practice to be the number" 5, then each count to five students to quit the game
(系统自动生成,下载前可以参看下载内容)
下载文件列表
大家一起做游戏.cpp
大家一起做游戏.dsp
大家一起做游戏.dsw
大家一起做游戏.ncb
大家一起做游戏.opt
大家一起做游戏.plg