poj 1048
来源:互联网 发布:5s支持4g网络吗 编辑:程序博客网 时间:2024/06/06 06:43
#include<iostream>#include<cstring>#include<map>using namespace std;int main(){char a[200],b[200],c[200];map<char,char> map1;int len,i;map1['A']='V';map1['B']='W';map1['C']='X';map1['D']='Y';map1['E']='Z';map1['F']='A';map1['G']='B';map1['H']='C';map1['I']='D';map1['J']='E';map1['K']='F';map1['L']='G';map1['M']='H';map1['N']='I';map1['O']='J';map1['P']='K';map1['Q']='L';map1['R']='M';map1['S']='N';map1['T']='O';map1['U']='P';map1['V']='Q';map1['W']='R';map1['X']='S';map1['Y']='T';map1['Z']='U';while(gets(a)&&strcmp(a,"ENDOFINPUT")){while(gets(b)&&strcmp(b,"END")){len=strlen(b);for(i=0;i<len;i++){if(b[i]>='A'&&b[i]<='Z')cout<<map1[b[i]];elsecout<<b[i];}cout<<endl;}}}
0 0
- poj 1048
- POJ
- poj
- POJ
- POJ
- poj
- poj
- POJ
- POJ
- poj
- POJ
- POJ
- POJ
- POJ
- POJ
- POJ
- POJ
- POJ
- 前百度员工离职总结:如何做个好员工?
- 30天学习30种新技术系列
- APP运营:合理化推送向数据看齐
- ubuntu 安装软件,卸载软件,查看软件 等命令的使用
- 2014年辛星Javascript解读第五节 break continue 与异常处理
- poj 1048
- MKNetworkKit: 网络处理又一利器
- PHP中的get_magic_quotes_gpc()函数
- nyoj 97 兄弟郊游问题
- CMSIS标准
- 开源网游RYZOM
- 网站统计访问次数的方法
- 享元模式之C++实现
- Hello Blog!