九度 1127
来源:互联网 发布:广电总局封网络电视 编辑:程序博客网 时间:2024/05/24 01:37
#include <cstdio>#include <iostream>#include <string>using namespace std;#ifdef ONLINE_JUDGE #define FINPUT(file) 0#define FOUTPUT(file) 0#else #define FINPUT(file) freopen(file,"r",stdin)#define FOUTPUT(file) freopen(file,"w",stdout)#endifvoid trans(string &s){ for(int i=0;i<s.length();i++) { if(s[i]<='Z' && s[i]>='A' && s[i]-5<'A') s[i] = s[i] + 26 - 5; else if(s[i]<='Z'&&s[i]>='A') s[i] = s[i] - 5; }}int main(){ FINPUT("in.txt"); FOUTPUT("out.txt"); string s1,s2,s3; while(getline(cin,s1)) { if(s1=="ENDOFINPUT") break; else if(s1=="START") { getline(cin,s2); trans(s2); cin>>s3; if(s3=="END") cout<<s2<<endl; } } return 0;}
0 0
- 九度 1127
- 九度oj 1127
- 九度OJ 题目1127:简单密码
- 九度oj-1127-简单密码
- 九度OJ 题目1127:简单密码
- 【九度OJ】:九度OJ 1050
- 【九度OJ】:九度OJ 1053
- 【九度OJ】:九度OJ 1056
- 【九度OJ】:九度OJ 1059
- 【九度OJ】:九度OJ 1206
- 人生九度
- 九度oj1181
- 九度oj1207
- 九度oj1182
- 九度o j1026
- 九度oj1186
- 九度oj1074
- 九度oj1127
- 抛出 异常 You have an error in your SQL syntax...
- request.getContextPath()使用
- CSDN上第一次写文章,胡说八道
- UML学习——组件,衍型、子系统、类
- SRS产品对比
- 九度 1127
- DataGrid_ItemCommand() 的成功执行
- Poj 2488 A Knight's Journey
- 类图和对象图
- document.write();
- 抽象、封装、继承、多态
- SQL Server 触发器
- 《遇见未知的自己》读后感
- WndProc()回调函数的返回值