| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152586 | 郑羽辰 | 18排列骨头 | C++ | Accepted | 0 MS | 260 KB | 645 | 2026-04-26 17:42:02 |
#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=1,a[31]={0},s=0,num=0; while(s<15){ if(a[i]==0){ num++; if(num==9){ a[i]=1; s++; num=0; } } i++; if(i>30){ i=1; } } for(i=1;i<=30;i++){ if(a[i]==0){ cout<<i<<" "; } } return 0; }