纯模拟
2024-09-28 16:39:14
发布于:云南
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
string s; getline(cin,s);
for(int i = 0;i < s.size();i++){
if(s[i] == 'A') cout << "V";
else if(s[i] == 'B') cout << "W";
else if(s[i] == 'C') cout << "X";
else if(s[i] == 'D') cout << "Y";
else if(s[i] == 'E') cout << "Z";
else if(s[i] >= 'F' && s[i] <= 'Z') cout << (char)(s[i] - 5);
else cout << s[i];
}
return 0;
}
这里空空如也
有帮助,赞一个