cgwshxs收录,使用标签:约瑟夫环问题,时间:2007-6-10 10:51:15 | 相关网摘,我也收藏
int m=3;//当报数为3的人退出.int s=0;for(int i=2;i<=人数;i++) s=(s+m)%i;return s+1;
http://community.csdn.net/Expert/topicview.asp?id=5580829
zhangkunming收录,使用标签:约瑟夫环问题 | 相关网摘,我也收藏,时间:2006-12-15 2:03:20
http://community.csdn.net/Expert/topicview.asp?id=5194500