| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76279 | 杨一诺 | 18排列骨头 | C++ | Wrong Answer | 1 MS | 260 KB | 321 | 2024-06-02 09:58:09 |
#include<bits/stdc++.h> using namespace std; int a[31]; int main(){ int sum=0; int i=1,j=1,c; while(sum<15){ if(a[j]==0){ i++; if(i==9){ a[j]=1; sum++; i=1; } } j++; if(j>30){ j=1; } } for(c=1;c<=30;c++){ if(a[c]==0){ cout<<c<<' '; } } return 0; }
------Input------
0
------Answer-----
1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
------Your output-----
1 4 6 7 10 13 14 15 17 21 22 25 26 27 28