文件名称:敢死队
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:7.58kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
有M个敢死队员要炸掉敌人的一碉堡,谁都不想去,排长决定用轮回数数的办法来决定哪个战士去执行任务。如果前一个战士没完成任务,则要再派一个战士上去。现给每个战士编一个号,大家围坐成一圈,随便从某一个战士开始计数,当数到5时,对应的战士就去执行任务,且此战士不再参加下一轮计数。如果此战士没完成任务,再从下一个战士开始数数,被数到第5时,此战士接着去执行任务。以此类推,直到任务完成为止。排长是不愿意去的,假设排长为1号,请你设计一程序,求出从第几号战士开始计数才能让排长最后一个留下来而不去执行任务。-a suicide squad members to blow up an enemy pillboxes, nobody wants to, the platoon leader decided to use the cycle counting methods to decide which fighters to carry out its mandate. If the former soldiers not to complete a task, the soldiers will have to send them a boost. For every fighter is a part, as we were sitting and then casually from a soldier counting began, when several of 5:00, and the corresponding implementation of the soldiers went duties, but the soldiers would no longer participate in this next round of counting. If the soldiers did not complete the tasks, then a soldier began to count, the number of first 5:00, the soldiers proceeded to the task. By analogy, until the job is done. Platoon leader is not willing to go to the assumption that for the 1st Platoon, please des
(系统自动生成,下载前可以参看下载内容)
下载文件列表
敢死队/敢死队.opt
敢死队/敢死队.dsw
敢死队/敢死队.ncb
敢死队/Debug
敢死队/敢死队.plg
敢死队/敢死队.dsp
敢死队/1.cpp
敢死队
www.dssz.com.txt
敢死队/敢死队.dsw
敢死队/敢死队.ncb
敢死队/Debug
敢死队/敢死队.plg
敢死队/敢死队.dsp
敢死队/1.cpp
敢死队
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.