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