题解 | 密码翻译
#include <stdio.h> #include<string.h> int main() { char s[80]; while(gets(s)){ for(int i=0;i<strlen(s);i++){ if((s[i]<='y'&&s[i]>='a')||(s[i]<='Y'&&s[i]>='A')) s[i]+=1; else if(s[i]=='z'||s[i]=='Z') s[i]-=25; } printf("%s",s); } return 0; }