文章
84
粉丝
408
获赞
33
访问
871.8k
#include<iostream>
#include<string>
using namespace std;
int main()
{
string s1, s2 = "";
cin >> s1;
int i = 0;
while (s1[i]) {
if (i < s1.length()-2) {
if (s1[i] == 'g' || s1[i] == 'G') {
if (s1[i+1] == 'z' || s1[i+1] == 'Z') {
if (s1[i+2] == 'u' || s1[i+2] == 'U') {
i += 3;
continue;
}
}
}
}
s2 += s1[i];
i++;
}
cout << s2 << endl;
return 0;
}
登录后发布评论
暂无评论,来抢沙发