| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140525 | 郝王骏程 | 报数问题 | C++ | Time Limit Exceeded | 1000 MS | 272 KB | 570 | 2025-12-15 20:11:54 |
#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(){ int a[101]; int n,m; cin>>n>>m; int c=0,t=0,i=0; while(c<n){ if(a[i]==0){ t++; if(t==m){ c++; cout <<i<<" "; a[i]=1; t=0; } } i++; if(i>n){ i=1; } } return 0; }