文章
61
粉丝
137
获赞
18
访问
38.4k
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
while(cin >> s){
int len = s.size();
for(int i = 0 ;i < len ;i++){
if(s[i] >= 'a' && s[i] <= 'z'){
s[i] = 'a' +(s[i] - 'a' +1)%26;
}else if(s[i] >= 'A' && s[i] <= 'Z'){
s[i] = 'A' +(s[i] - 'A' +1)%26;
}
}
cout << s << endl;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发