Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
122344 | 顾文博 | 18排列骨头 | C++ | Accepted | 0 MS | 260 KB | 633 | 2025-06-15 14:55:50 |
#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},cnt=0,hu=0,i=0; while(hu<15){ i++; if(i==31){ i=1; } if(a[i]!=1){ cnt++; } if(cnt==9){ hu++; cnt=0; a[i]=1; } } for(int i=1;i<=30;i++){ if(a[i]==0){ cout<<i<<' '; } } return 0; }