| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165016 | 王慕哲 | 18排列骨头 | C++ | Compile Error | 0 MS | 0 KB | 444 | 2026-11-08 17:29:34 |
#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++){ cout<<a[i]; }
Main.cc: In function 'int main()':
Main.cc:21:5: error: expected ';' before '}' token
}
^
Main.cc:24:1: error: expected '}' at end of input
}
^