摘要: #include<stdio.h>int main(){ int n,d; while(~scanf("%d %d",&n,&d))//输入总人数和去除数 { long long w=0; for(int i=2;i<=n;i++) w=(w+d)%i; printf("%d %d %I64d\n" 阅读全文
posted @ 2018-07-16 15:55 窗子外和窗子里 阅读(320) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio>inline void in(int &x){ char c=getchar(); int f=1; x=0; while (c<'0'||c>'9') { if (c=='-') f=-f; c=getchar(); } while (c>='0'&&c<='9') 阅读全文
posted @ 2018-07-16 15:52 窗子外和窗子里 阅读(106) 评论(0) 推荐(0) 编辑