文章
99
粉丝
120
获赞
8
访问
96.8k
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
getline(cin, s);
string target[8] = {"gzu", "gzU", "gZu", "gZU", "Gzu", "GzU", "GZu", "GZU"};
for (int i = 0; i < 8; i++) {
size_t pos = s.find(target[i]);
while (pos != string::npos) {
s.erase(pos, 3);
pos = s.find(target[i]);
}
}
cout << s << endl;
return 0;
}
登录后发布评论
暂无评论,来抢沙发