字符串操作
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
string str;
cin>>str;
for(int i = 0;i < str.size();i += 1)
if(isalpha(str[i]))
if(isdigit(str[i+1]) && i+1 < str.size())
for(int j = 0;j < str[i+1]-'0';j ++)
printf("%c",str[i]);
else
printf("%c",str[i]);
return 0;
}
强啊
卧槽!竟然被你发现了