摘要:
n 为环的大小 ,m 为每隔m,kill一个人View Code #include<stdio.h>#include<string.h>int a[109];int main(){ int i,j,n,count,m; while(scanf("%d %d",&n,&m)!=EOF) { memset(a,0,sizeof(a)); int add=0; i=0,count=1; while(add<n-1) { while(a[i]!=0) ... 阅读全文
posted @ 2011-11-03 21:52 huhuuu 阅读(164) 评论(0) 推荐(0) 编辑