Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
143396 杨启宏 18排列骨头 C++ Accepted 0 MS 264 KB 649 2026-01-13 20:13:11

Tests(1/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 a[31]={0},i=0,h=0,num=0; while(h<15){ i++; if(i>30){ i=1; } if(a[i]==0){ num++; if(num==9){ h++; a[i]=1; num=0; } } } for(int j=1;j<=30;j++){ if(a[j]==0){ cout<<j<<' '; } } return 0; }