22202 - 字符串加密

#include<bits/stdc++.h>
using namespace std;
int len;
char c[501];
int main(){
  	cin>>c;
  	len=strlen(c);
  	for(int i=0;i<len;i++){
    	if(c[i]>='a'&&c[i]<='y') c[i]=c[i]+1;
      	else if(c[i]=='z') c[i]='a';
      	else if(c[i]>='A'&&c[i]<='Y') c[i]=c[i]+1;
      	else if(c[i]=='Z') c[i]='A';
      	cout<<c[i];
    }
	return 0;
}