Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6966 | 詹梓涵 | 18排列骨头 | C++ | Wrong Answer | 0 MS | 252 KB | 487 | 2025-03-29 12:44:09 |
#include<bits/stdc++.h> using namespace std; int a[31],z,b; int main(){ while(b<15){ for(int i=1;i<=30;i++){ if(a[i]==0){ z++; if(z==10){ z=1; } if(z==9){ a[i]=1; b++; } } } } for(int i=1;i<=30;i++){ if(a[i]==1){ cout<<i<<" "; } } return 0; }
------Input------
0
------Answer-----
1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
------Your output-----
5 6 7 8 9 12 16 18 19 22 23 24 26 27 30