| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76285 | 杨一诺 | 18排列骨头 | C++ | Wrong Answer | 0 MS | 260 KB | 325 | 2024-06-02 10:00:47 |
#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=0; } } 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 2 3 9 10 12 13 14 16 19 20 24 27 28 30