Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:有谁能帮我解释下这题什么意思吗?In Reply To:有谁能帮我解释下这题什么意思吗? Posted by:1008063102 at 2011-07-15 19:22:16 > 有谁能帮我解释下这题什么意思吗 一群人(N个)围成一个圆圈,从第一个人开始,第M个人 被去掉,剩下的人还是一个圆圈。接着刚才的继续数,去掉第M个。。。。。。最后剩下的一个人就是胜利的(活着的); 比如有8个人,即n=8,取m=5吧 1.从1开始 第五个是5,,去掉 2.从6开始,第五个是2,去掉 3.从3开始 第五个是8,,去掉 4.从1开始 第五个是7,,去掉 5.从1开始 第五个是1,,去掉 6.从3开始 第五个是4,,去掉 7.从6开始 第五个是6,,去掉 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator