| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 67424 | 冯诚阳 | 杀人游戏 | C++ | Accepted | 1 MS | 276 KB | 375 | 2024-03-16 15:28:39 |
#include<iostream> #include<cstring> #include<cmath> using namespace std; int main(){ int f=0,t=0,m,n,s=0; cin>>n>>m; bool b[101]={0}; while(f!=n-1){ t++; if(t>n) t=1; if(!b[t]) s++; if(s==m){ s=0; cout<<t<<' '; b[t]=1; f++; } } return 0; }