先附上完整代码
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, m = "GZU", res = "";
getline(cin, s);
s = "GzzGzukkgzUuu";
for (int i = 0,j,k; i < s.size(); i++) {
for (j = 0, k = i; j < m.size(); j++, k++)
if ((s[k] != m[j]) &...