题解 | #【模板】循环队列#
【模板】循环队列
https://www.nowcoder.com/practice/0a3a216e50004d8bb5da43ad38bcfcbf
#include<cstdio> using namespace std; int main(){ //string s; char s[20]; int num; for(int i=0;i<3;i++){ //cin>>s; //cout<<"["<<i+1<<"]"<<s<<endl; scanf("%s %d",s,&num); printf("[%d] %s\n",i+1,s); } return 0; }