Run ID:135831

提交时间:2025-11-08 15:10:20

#include<bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (char &c : s) { if (isupper(c)) c = tolower(c); else if (islower(c)) c = toupper(c); } reverse(s.begin(), s.end()); for (char &c : s) { if (isupper(c)) { c = 'A' + (c - 'A' + 23) % 26; } else if (islower(c)) { c = 'a' + (c - 'a' + 23) % 26; } } cout << s << endl; return 0; }