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; }
相关文章推荐
- 更改MyEclipse的项目的webroot名称
- CreateJS奥运五环动画
- 利用shell脚本监听某些远程主机的磁盘状况
- skb_buf结构分析-(dm9000-2)
- 素数判断算法 高效率
- 最小生成树—还是畅通工程
- [02-24] [刺杀肯尼迪][1080p BRRip /MKV/1.7G][2013年美国传记/历史片]
- hdu3338 最大流
- 一致性 hash 算法( consistent hashing )
- DragonBones介绍
- 设置android的布局文件的背景颜色为黑色
- 小儿外感案
- uva - 11520 - Fill the Square(贪心、字典序)
- 有些人
- 第四届省赛试题 模拟 Contest Print Server
- 最小生成树—畅通工程
- 面试题:运算符优先级
- HttpClient4.x的一些使用
- 教你如何迅速秒杀掉:99%的海量数据处理面试题
- 删除SSMS中保存的帐户信息