登录
首页 » C/C++ » jiaotu

jiaotu

于 2010-03-20 发布 文件大小:156KB
0 70
下载积分: 1 下载次数: 0

代码说明:

说明:  w-w1各教徒和w1个非教徒在海上遇险,必须将一半的人投到海中,其余的人才能幸免,于是想了个办法w人围成一圈从第一人开始报数,数到第w2个就将其人丢入海中,又从下个人数,数到第w2个人又丢入海中,依次循环,怎样排才使投入大海的都是非教徒(w-w1 and w1 of all non-believers believers in distress at sea, half of them must be invested in the sea, the others can be spared, so think of one way to w people form a circle from the first people began to count off a few to the first w2 one would be thrown into the sea of its people, and from under the personal number, the number of individuals to the first w2 then thrown into the sea, followed by recycling, how to make it into the sea row are non-believers)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696522资源总数
  • 104046会员总数
  • 29今日下载