0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-05 02:46:27 +00:00
OI-codes/AcWing/767/767.cpp

20 lines
392 B
C++
Raw Normal View History

#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
getline(cin, s);
for (char c : s) {
if ('A' <= c && c <= 'Z') {
cout << char((c - 'A' + 1) % 26 + 'A');
} else if ('a' <= c && c <= 'z') {
cout << char((c - 'a' + 1) % 26 + 'a');
} else {
cout << c;
}
}
cout << endl;
return 0;
}