Run ID:93128

提交时间:2024-10-11 15:11:43

#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()<<endl; q.pop(); } return 0; }