#include <iostream> #include <stdio.h> #include <cstring> #include <string> #include <algorithm> using namespace std; int main() { string a; while (getline(cin, a)) { int len = a.size(); if (a == "!") break; for (int i = 0; i < len; i++) { if (a[i] >= 'A'&&a[i] <= 'Z') cout << char('Z' - (a[i] - 'A')); else if (a[i] >= 'a'&&a[i] <= 'z') cout << char('z' - (a[i] - 'a')); else cout << a[i]; } cout << endl; } return 0; }
0.0分
21 人评分
【作业调度方案】 (C语言代码)浏览:1089 |
C二级辅导-计负均正 (C++代码)浏览:898 |
C语言程序设计教程(第三版)课后习题11.3 (C语言代码)浏览:900 |
点我有惊喜!你懂得!浏览:1395 |
母牛的故事 (C语言代码)浏览:744 |
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:646 |
矩形面积交 (Java代码)浏览:1222 |
九宫重排 (C++代码)浏览:2160 |
淘淘的名单 (C语言代码)答案错误???浏览:595 |
WU-蓝桥杯算法提高VIP-企业奖金发放 (C++代码)浏览:1176 |