Run ID:70183
提交时间:2024-04-13 18:06:14
# include<iostream> using namespace std; int main(){ int a[31]={0},s=0,d=0,i=1; while(s<15){ i++; if(a[i]==1) continue; d++; if(d==9){ s++; a[i]=1; d=0; }if(i>30){ i=1; } }for(int i=1;i<=30;i++){ if(a[i]==0) cout<<i<<" "; } return 0; }