Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95480 刘珩宇 18排列骨头 C++ Wrong Answer 0 MS 256 KB 546 2024-10-27 19:49:19

Tests(0/1):


Code:

#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 i,hu=15,x=0,num=0,a[31]={0}; while(hu!=0){ x++; if(x==31){ x=1; } if(a[x]==0){ num++; } if(num==9){ num=0; a[x]=1; hu--; } } for(i=1;i<=31;i++){ if(a[x]==0){ cout<<i<<" "; } } return 0; }


Run Info:

------Input------
0
------Answer-----
1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
------Your output-----