文章

81

粉丝

0

获赞

282

访问

11.0k

头像
密码的翻译 题解:
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;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发