| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70183 | 牛延希 | 18排列骨头 | C++ | Wrong Answer | 1 MS | 264 KB | 328 | 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; }
------Input------
0
------Answer-----
1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
------Your output-----
1 2 3 5 9 11 12 14 15 16 18 23 24 26 29 30