Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93127 | Kevin | 18排列骨头 | C++ | Wrong Answer | 1 MS | 268 KB | 311 | 2024-10-11 15:09:49 |
#include<bits/stdc++.h> using namespace std; int main(){ queue<int>q; int s=0; for(int i=1;i<=30;i++){ q.push(i); } while(q.empty()==false){ for(int i=1;i<9;i++){ q.push(q.front()); q.pop(); } s++; cout<<q.front()<<endl; q.pop(); if(s==15) break; } return 0; }
------Input------
0
------Answer-----
1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
------Your output-----
9 18 27 6 16 26 7 19 30 12 24 8 22 5 23