Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95473 | 吴诗涵 | 18排列骨头 | C++ | Wrong Answer | 1 MS | 264 KB | 354 | 2024-10-27 19:44:09 |
#include<iostream> using namespace std; int main(){ int a[31],hu=15,num=1,x=0; while(hu!=0){ x++; if(x==31){ x==1; } if(a[x]==0){ num++; } if(num==9){ num=0; a[x]=1; hu-=1; } } for(int i=1;i<31;i++){ if(a[i]==0){ cout<<i<<" "; } } return 0; }
------Input------
0
------Answer-----
1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
------Your output-----
1 3 5 7 9 11 13 19 20 21 23 25 27