文件名称:lianbiaojiaoji
-
所属分类:
- 标签属性:
- 上传时间:2015-01-15
-
文件大小:635byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
猴子选大王。n只猴子围成一圈,从1到m报数,报m的猴子出局。余下的猴子从第m+1只开始继续从1到m报数,报m的猴子出局。第n只猴子报数后,第1只猴子接着报数(因为围成了圈)。待整个圈只剩下一只猴子时,该猴子即为大王。n和m由用户输入,请输出当选大王的猴子的编号。-Monkey king election. n monkeys circle, reported that the number 1 to m, m reported monkeys out. The remaining monkeys the first m+ 1 started for continued reported that the number 1 to m, m reported monkeys out. After the first n monkeys reported that the number of the first one and then reported that the number of monkeys (since huddled circle). Until the entire ring only when a monkey, the monkey is the king. n and m by user input, output was elected king of the monkey s number.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
111320208陈奕杰个人实验1之选做题2链表归并排序.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.