POJ-1248
来源:互联网 发布:sql数据脱敏处理方法 编辑:程序博客网 时间:2024/04/28 12:47
#include<iostream>#include<string>using namespace std;int main(int argc, char *argv[]){string cipher;while(getline(cin,cipher),cipher!="ENDOFINPUT"){if(cipher=="START"||cipher=="END"){continue;}string plainText="";for(int i=0;i<cipher.length();i++){if(cipher[i]>='A' && cipher[i]<='Z'){if(cipher[i]-5<'A'){plainText+=cipher[i]+25-4;//cout<<plainText<<endl;}else{plainText+=cipher[i]-5;//cout<<plainText<<endl;}}else{plainText+=cipher[i];//cout<<plainText<<endl;}}cout<<plainText<<endl;}return 0;}
0 0
- poj 1248
- POJ 1248
- POJ-1248
- POJ-1248
- poj 1248 Safecracker
- POJ 1248 - Safecracker
- poj 1248 水题
- poj 1248 (水)
- poj 1248 Safecracker
- POJ 1248 Safecracker
- POJ 1248 Safecracker 水题
- POJ 1248 Safecracker
- POJ
- poj
- POJ
- POJ
- poj
- poj
- what's new in vc2015
- 最长不重复子串(动态规划最长不重复子串+Hash)
- 25. Location hash 属性
- 旁路劫持攻
- 为宝宝冲奶粉,40度水还是70度水?
- POJ-1248
- HDU1285确定比赛名次 + 拓扑排序
- Linux管道的实现机制
- 二叉查找树的C语言实现
- afx_msg消息响应返回值LRESULT char*在多字节字符集下面就可以转换为CString
- -fPIC ppc_85xx-gcc -shared -fPIC liberr.c -o liberr.so
- form表单中onsubmit属性的作用
- python中的for循环
- linux切换文本-图形模式