2013年9月30日

约瑟夫环

摘要: #include <iostream> using namespace std; int main() { int n, m; while(cin>>n>>m) { int s = 0; for(int i=2;i<=n;i++) { s = (s+m)%i; } cout<<"The Winner 阅读全文

posted @ 2013-09-30 20:35 Knuth_档案 阅读(167) 评论(0) 推荐(0) 编辑

导航