Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
108587 | 陈铎文 | 18排列骨头 | C++ | Time Limit Exceeded | 1000 MS | 252 KB | 322 | 2025-01-20 21:10:20 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[31]={0},i=1,num=0,k=0; while(num<15){ if(i>30){ i=1; } if(a[i]=0){ k++; } if(k==9 and a[i]==0){ a[i]==1; num++; } i++; } for(int i=1;i<=30;i++){ if(a[i]==0){ cout<<i<<" "; } } return 0; }