Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98080 | 严隽琪 | 18排列骨头 | C++ | Wrong Answer | 0 MS | 264 KB | 570 | 2024-11-17 12:04:46 |
#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]={},num=0,zuo=0,hul=0; while(hul<15){ zuo++; if(zuo==31); zuo=1; if(a[zuo]==0); num++; if(num==9){ num=0; a[zuo]=1; hul++; } } for(int i=1;i<=30;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-----
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30