Run ID:37140

提交时间:2022-08-12 16:52:26

#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; }