#include<bits/stdc++.h>
using namespace std;
string compress()
{
string s="",str = "";
char c;
int D;
while(cin >> c)
{
if(c == '[')
{
cin >> D;
str = compress();
while(D--)
{
s += str;
}
}
else if(c == ']')
{
return s;
}
else
{
s += c;
}
}
return s;
}
int main()
{
cout << compress();
return 0;
}
按了回车不出结果
话说违规了为什么不给我说一下呜呜呜