题解
2025-11-20 22:29:21
发布于:江苏
10阅读
0回复
0点赞
我是某姓陈的,走遍ACGO所有签到题
#include <bits/stdc++.h>
using namespace std;
int main(){
string n;cin >> n;
for (int i = 0;i <= n.size()-1;i++){
if (n[i] == 'e') n[i] = 't';//判断;如果是e就变为t
else if (n[i] == 'h') n[i] = 'Q';//判断;如果是h,就变为Q
}
cout << n;
return 0;
}
这里空空如也







有帮助,赞一个