文件名称:Lucky
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:982byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
实一群小孩子在海边玩耍,发现了一个美丽的贝壳,
*每个小孩子都希望得到这个贝壳,为了判断出这个贝壳的归属,
*Simon提出了一个解决方法如下:众人围成一圈,
*从某个位置开始数数,从1到N,数到N的小孩子出局,其余人继续数数,
*留下的最后一个小孩子就是得到贝壳的幸运儿.编写程序,
*输出各个小孩子的出局顺序和最后得到贝壳的幸运儿。-Real group of children playing at the beach and found a beautiful shell,* each child are hoping to get the shell, in order to determine the ownership of this shell,* Simon proposed a solution as follows: all form a circle,* from a location started counting from 1 to N, to N, the number of children out, the rest continue to count,* a child is left behind by the last shell of the lucky ones. write a program,* the output of each child shell out the order and get the lucky last.
*每个小孩子都希望得到这个贝壳,为了判断出这个贝壳的归属,
*Simon提出了一个解决方法如下:众人围成一圈,
*从某个位置开始数数,从1到N,数到N的小孩子出局,其余人继续数数,
*留下的最后一个小孩子就是得到贝壳的幸运儿.编写程序,
*输出各个小孩子的出局顺序和最后得到贝壳的幸运儿。-Real group of children playing at the beach and found a beautiful shell,* each child are hoping to get the shell, in order to determine the ownership of this shell,* Simon proposed a solution as follows: all form a circle,* from a location started counting from 1 to N, to N, the number of children out, the rest continue to count,* a child is left behind by the last shell of the lucky ones. write a program,* the output of each child shell out the order and get the lucky last.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Lucky/Lucky.java
Lucky
Lucky
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.