| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143432 | 李亭绪 | 18排列骨头 | C++ | Wrong Answer | 0 MS | 264 KB | 574 | 2026-01-14 19:53:21 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf( #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[31],m,h=0,i=0; while(h!=15) { i++; if(i>30) i=1; if(a[i]==0) m++; if(m==9) a[i]=1; h++; m=0; } for(int i=1;i<=31;i++){ if(a[i]==0) cout<<i<<' '; } }
------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 15 19 20 21 23 25 27 31