| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133406 | 王丞杰 | 18排列骨头 | C++ | Wrong Answer | 1 MS | 260 KB | 313 | 2025-10-18 16:56:28 |
#include<bits/stdc++.h> using namespace std; int a[31]; int main() { int nct=0; int i=1,ss=1; while(nct<15){ if(a[i] == 0){ ss++; if(ss=9){ a[i] = 1; nct++; ss=0; } } i++; if(i>30) i=1; } for(int j=1;j<=30;j++){ if(a[j]==0){ cout<<j<<" "; } } }
------Input------
0
------Answer-----
1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
------Your output-----
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30