| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156082 | 张暄浩 | 狐狸吃兔子 | C++ | Time Limit Exceeded | 1000 MS | 268 KB | 558 | 2026-06-21 17:28:19 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ bool a[101]={0}; int n,m,i,f=0,t=0,s=0; cin>>n>>m; while(f!=n-1){ t++; if(t>n) t=1; if(!a[t]) s++; if(s==m){ s=0; cout<<t<<" "<<endl; a[t]=1; f++; } } cout<<endl; return 0; }