#include<bits/stdc++.h>
using namespace std;
string ETma(){
int k;
char d;
string s="";
string str;
while(d=cin.get()){
if(d=='\n'){
break;
}
if(d=='['){
cin>>k;
str=ETma();
while(k--){
s+=str;
}
}
else if(d==']'){
return s;
}else{
s+=d;
}
}
}
int main(){
cout<<ETma();
return 0;
}
哪位大佬可以帮忙改一下我的大码?!呜呜呜……