| 比赛 | 20241022 | 评测结果 | EEEEEEEEEE |
|---|---|---|---|
| 题目名称 | 解压缩 | 最终得分 | 0 |
| 用户昵称 | 小金 | 运行时间 | 2.143 s |
| 代码语言 | C++ | 内存使用 | 3.17 MiB |
| 提交时间 | 2024-10-22 11:49:44 | ||
#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
string solve()
{
string s1="",s2;
char ch;
while(cin>>ch)
{
if(ch=='[')
{
int t;
cin>>t;
s2=solve();
while(t--) s1+=s2;
}
else if(ch==']')
{
return s1;
}
else s1+=ch;
}
}
int main()
{
freopen("extract.in","r",stdin);
freopen("extract.out","w",stdout);
cout<<solve();
return 0;
}