Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93129 Kevin 18排列骨头 C++ Wrong Answer 1 MS 264 KB 353 2024-10-11 15:14:24

Tests(0/1):


Code:

#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++; q.pop(); if(s==15) break; } while(q.empty()==false){ cout<<q.front()<<" "; q.pop(); } return 0; }


Run Info:

------Input------
0
------Answer-----
1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
------Your output-----
25 28 29 1 2 3 4 10 11 13 14 15 17 20 21