| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 164998 | 王垚植 | 18排列骨头 | C++ | Wrong Answer | 0 MS | 260 KB | 488 | 2026-11-08 16:58:26 |
#include<bits/stdc++.h> using namespace std; int a[10001]={}; int main(){ int n=30,i=0,num=0,sumi=0; int pe=n; while(pe){ i++; if (sumi>=15)break; if (i>n)i=1; if (a[i]==0){ num++; if (num==9){ a[i]=1; num=0; pe--; } } } for (int i=0;i<n;i++){ if (a[i]==0){ cout<<i+1<<" "; } } return 0; }
------Input------
0
------Answer-----
1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
------Your output-----
1