提交时间:2025-03-29 14:31:44

运行 ID: 315239

#include<bits/stdc++.h> using namespace std; int a[250]; int main(){ string s; cin>>s; for(int i=0;i<s.size();i++){ int x=0; while(isdigit(s[i])){ x=x*10+s[i]-'0'; i++; } if(x>1){ for(int j=1;j<=x;j++) cout<<s[i]; }else cout<<s[i]; } return 0; }