题目描述
#include<cstdio>
#include<iostream>
#include<string>
#include<cstring>
using namespace std;
int main(void)
{
string a;
string b="";
cin>>a;
for(int i=0;i<a.size();i++)
{
if(isdigit(a[i]))
{
for(int j=1;j<=a[i]-'0'-1;j++)
{
b=b+a[i-1];
}
continue;
}
b=b+a[i];
}
cout<<b<<endl;
return 0;
}