您的位置:首页 > 其它

poj3749

2014-02-25 20:39 288 查看
#include<iostream>
#include<fstream>
using namespace std;
//char s[102][205];
int main(){
//freopen("1.txt","r",stdin);
//ifstream cin("1.txt");
string s;
while(cin>>s){
if(s=="ENDOFINPUT")
break;
char huanh;
cin>>huanh;

string str;
getline(cin,str);
str=huanh+str;

for(int i=0;i<str.length();++i){
if(str[i]>='A'&&str[i]<='Z'){
str[i]=char((str[i]-'A'-5+26)%26+'A');
}
}
cout<<str<<endl;

string ends;
cin>>ends;
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: