密码的翻译 题解:
P3502
发布于2025年3月15日 23:56
阅读数 130
#include<bits/stdc++.h>
using namespace std;
int main(){
string str;
while(cin>>str){
for(char &c:str){
if(c>='a'&&c<='y'||c>='A'&&c<='Y'){
c+=1;
continue;
}
if(c=='z') c='a';
if(c=='Z') c='A';
}
cout<<str<<endl;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发