Run ID:69783
提交时间:2024-04-06 15:19:18
# include<iostream> using namespace std; int main(){ int a=0,k=1; int z[31]; for(int i=1;i>=30;i++){ a[i]=0; i=1;} while(k<15){ if(i>30) i=1; if(z[i]==0){ k++; if(z[i]==0){ a[i]=1; k=0; a++ }i++ } for(int i=1;i<=30;i++){ if(z[i]==0){ cout<<i;}} return 0; }