Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
37140 陈轩涛 狐狸吃兔子 C++ Accepted 1 MS 280 KB 290 2022-08-12 16:52:26

Tests(1/1):


Code:

#include<iostream> using namespace std; int main() { bool a[10005]={0}; int n,f=0,t=0,m=1,s=0; while(f!=1000){ t++; if(t>10) t=1; s++; if(s==m){ s=0; a[t]=1; m++; f++; s=0; } } for(int i=1;i<=10;i++) if(!a[i]) cout<<i<<" "; return 0; }