0
已解决
曹博扬
初级天翼
初级天翼
#include<iostream>
#include<string>
#include<cmath>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<sstream>
using namespace std;
int main(){
string s;
int n;
cin>>n;
for(int j=1;j<=n;j++){
getline(cin,s);
getline(cin,s);
for(int i=0;i<s.size();i++){
if(s[i]>='a'&&s[i]<='z'||s[i]>='A'&&s[i]<='Z'){
if(s[i]=='z')
s[i]='a';
else if(s[i]=='Z')
s[i]='A';
else
s[i]++;
}
}
cout<<s<<endl;
}
return 0;
}
1151 50分