| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 162800 | 令狐文丽 | 18排列骨头 | C++ | Accepted | 1 MS | 264 KB | 353 | 2026-10-20 15:38:11 |
#include<bits/stdc++.h> using namespace std; int a[31]; int main(){ int i=1,num=0,j=1; while(num<15){ if(a[j]==0){ if(i==9){ i=1; num++; a[j]=1; }else{ i++; } } if(j >=30){ j=1; }else{ j++; } } for(int i = 1;i<=30;i++){ if(a[i]==0){ cout<<i<<" "; } } return 0; }