题解
2025-06-01 11:25:44
发布于:浙江
3阅读
0回复
0点赞
#include <iostream>
#include <string>
using namespace std;
int main() {
string a;
string b = "";
cin >> a;
for(int i = 0; i < a.length(); i++) {
char c = a[i];
if(c == 'z' || c == 'h' || c == 'a' || c == 'n' || c == 'g') {
b += ' ';
} else {
b += c;
}
}
cout <<b << endl;
return 0;
}
这里空空如也
有帮助,赞一个