poj3749
来源:互联网 发布:des算法c语言讲解 编辑:程序博客网 时间:2024/06/03 21:25
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char str[200];
char *p;
gets(str);
while(strcmp(str,"ENDOFINPUT") != 0)
{
if(strcmp(str,"START")==0)
{
gets(str);
p = str;
while(*p != '/0')
{
if(*p >= 'F')
*p = *p-5;
else
{
if(*p == 'E') *p = 'Z';
if(*p == 'D') *p = 'Y';
if(*p == 'C') *p = 'X';
if(*p == 'B') *p = 'W';
if(*p == 'A') *p = 'V';
}
p++;
}
puts(str);
}
gets(str);
if(strcmp(str,"END") == 0)
gets(str);
}
return 0;
}
- poj3749
- poj3749
- POJ3749
- POJ3749 破译密码
- 【POJ3749】:破译密码
- poj3749 破译密码
- POJ3749 破译密码【密码】
- 北大ACM poj3749 破译密码
- POJ3749 破译密码【字符密码】
- QML之SearchBox
- YUI compressor的使用
- 分形程序高级技巧入门教程--第五到八章
- jquery源码阅读知识储备(5)call方法和apply方法接触
- 初六
- poj3749
- IniFiles 单元内容学习(二)
- 乐,快乐。
- 关于Blog的思考
- 可以讓你少奮斗10年的工作經驗
- 2011-2-7
- 随机数生成器C语言
- 编写第一个XML-RPC程序遇到的问题总结
- Android上面TreeView效果