#include <string>
#include <iostream>
using namespace std;
int main()
{
string s, A, B;
cin >> s >> A >> B;
int pos = s.find(A);
while (pos != -1)
{
s.replace(pos, A.size(), B);
pos = s.find(A);
}
cout << s << endl;
return 0;
}
牛客算法周周练18救救企鹅
猜你喜欢
转载自blog.csdn.net/qq_32862515/article/details/107800182
今日推荐
周排行