| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165019 | 王慕哲 | 18排列骨头 | C++ | Accepted | 0 MS | 252 KB | 463 | 2026-11-08 17:34:57 |
#include <bits/stdc++.h> using namespace std; int a[10001]={}; int main() { int i; for(i=1;i<=30;i++){ a[i]=1; } int n=30,num=0; while(n>15){ if (a[i]){ num++; if (num==9) { a[i]=0; n--; num=0; } } i++; if(i>30) i=1; } for(i=1;i<=30;i++){ if(a[i]) cout<<i<<" "; } }