Run ID:93127

提交时间: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; }