文件名称:dajiayiqizuoyouxi
-
所属分类:
- 标签属性:
- 上传时间:2014-12-06
-
文件大小:5.94kb
-
已下载: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
大家一起做游戏.dsp
大家一起做游戏.dsw
大家一起做游戏.ncb
大家一起做游戏.opt
大家一起做游戏.plg
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.