文章
61
粉丝
137
获赞
18
访问
38.3k
#include<bits/stdc++.h>
using namespace std;
int main (){
string s;
cin >> s;
transform(s.begin(), s.end(),s.begin() ,::tolower);
int index = s.find("tantan", index);
if(index == -1){
cout << "not find" << endl;
return 0;
}
while(index != -1){
s.replace(index, 6, "baibai");
index = s.find("tantan", index);
}
cout << s << endl;
return 0;
}
登录后发布评论
暂无评论,来抢沙发