#include<iostream>
#include<string>
using namespace std;
int main(){
string m, n;
while(cin>>m && m != "ENDOFINPUT"){
getline(cin, n);
getline(cin, n);
cin>>m;
for(int i = 0; i < n.length(); i++){
if(n[i] == 'A'){
cout<<'V';
}else if(n[i] == 'B'){
cout<<'W';
}else if(n[i] == 'C'){
cout<<'X';
}else if(n[i] == 'D'){
cout<<'Y';
}else if(n[i] == 'E'){
cout<<'Z';
}else if(n[i] == 'F'){
cout<<'A';
}else if(n[i] == 'G'){
cout<<'B';
}else if(n[i] == 'H'){
cout<<'C';
}else if(n[i] == 'I'){
cout<<'D';
}else if(n[i] == 'J'){
cout<<'E';
}else if(n[i] == 'K'){
cout<<'F';
}else if(n[i] == 'L'){
cout<<'G';
}else if(n[i] == 'M'){
cout<<'H';
}else if(n[i] == 'N'){
cout<<'I';
}else if(n[i] == 'O'){
cout<<'J';
}else if(n[i] == 'P'){
cout<<'K';
}else if(n[i] == 'Q'){
cout<<'L';
}else if(n[i] == 'R'){
cout<<'M';
}else if(n[i] == 'S'){
cout<<'N';
}else if(n[i] == 'T'){
cout<<'O';
}else if(n[i] == 'U'){
cout<<'P';
}else if(n[i] == 'V'){
cout<<'Q';
}else if(n[i] == 'W'){
cout<<'R';
}else if(n[i] == 'X'){
cout<<'S';
}else if(n[i] == 'Y'){
cout<<'T';
}else if(n[i] == 'Z'){
cout<<'U';
}else{
cout<<n[i];
}
}
cout<<endl;
}
}
hdoj1048简单题
最新推荐文章于 2018-12-15 22:48:52 发布