| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133409 | 田祥江 | 18排列骨头 | C++ | Wrong Answer | 1 MS | 256 KB | 329 | 2025-10-18 16:57:49 |
#include<bits/stdc++.h> using namespace std; int a[31]; int main(){ int cnt=0; int i=1; int ss=0; while(cnt<15){ if(a[i]==0){ ss++; if(ss==9){ a[i]=1; cnt++; ss=0; } } i++; if(i>=30)i=1; } for(int j=1;j<=30;j++){ if(a[j]==0){ cout<<j<<" "; } } return 0; }
------Input------
0
------Answer-----
1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
------Your output-----
1 4 5 6 8 11 12 16 19 20 22 23 24 25 30