POJ 1298 解题报告
2014-11-30 09:15
281 查看
这道题就是按照题目要求实现的。
1298 | Accepted | 688K | 0MS | G++ | 898B |
/* ID: thestor1 LANG: C++ TASK: poj1298 */ #include <iostream> #include <fstream> #include <cmath> #include <cstdio> #include <cstring> #include <limits> #include <string> #include <vector> #include <list> #include <set> #include <map> #include <queue> #include <stack> #include <algorithm> #include <cassert> using namespace std; int main() { std::ios::sync_with_stdio(false); string start, line, end; while (getline(cin, start) && start == "START") { getline(cin, line); getline(cin, end); // cin >> end; // cout << "end:" << end << endl; assert (end == "END"); for (int i = 0; i < line.size(); ++i) { if (line[i] >= 'A' && line[i] <= 'Z') { cout << (char)('A' + ((line[i] - 'A' + 26 - 5) % 26)); } else { cout << line[i]; } } cout << endl; } assert (start == "ENDOFINPUT"); return 0; }
相关文章推荐
- 解题报告 poj 1298
- POJ1298解题报告
- poj2251解题报告
- Image Perimeters(POJ)解题报告
- POJ - 2352 Stars解题报告(树状数组求二维区域和)
- POJ3162 解题报告
- POJ-1067 取石子游戏 解题报告
- poj2377解题报告
- poj解题报告——1003、1005、1799
- POJ 2719 Faulty Odometer 解题报告
- POJ 1009 解题报告 Edge Detection
- POJ 1637 网络流判混合欧拉回路 解题报告
- POJ-1182-食物链 解题报告
- POJ1068 解题报告
- POJ 3580 较复杂的Splay区间维护题解题报告
- POJ - 2418 Hardwood Species解题报告(trie树的建立以及遍历)
- POJ-1152 An Easy Problem! 解题报告(数论) 是不是N进制数
- POJ 1657 Distance on Chessboard 解题报告
- POJ 1001 Exponentiation解题报告
- POJ - 3414 Pots解题报告(输出路径的bfs)