| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151771 | 徐英杰 | 18排列骨头 | C++ | Accepted | 0 MS | 268 KB | 452 | 2026-04-18 17:07:38 |
#include<iostream> using namespace std; int a[1005]; int main() { int k=0,cnt=0,i=1; while (cnt<15) { if (a[i] == 0) { k++; } if (k == 9) { a[i]=1; cnt++; k = 0; } i++; if (i > 30) { i = 1; } } for (int j = 1;j <= 30;j++) { if (a[j] == 0) { cout<<j<<" "; } } }