Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93415 hby 18排列骨头 C++ Wrong Answer 0 MS 268 KB 355 2024-10-13 20:39:34

Tests(0/1):


Code:

# include<bits/stdc++.h> using namespace std; int main(){ int a=0; queue <int> q; 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(); }q.pop(); if(q.size()==15){ break; } } for(int i=1;i<=15;i++){ 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