Run ID:93415
提交时间:2024-10-13 20:39:34
# 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; }