0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 15:16:28 +00:00
Baoshuo Ren 2021-08-02 21:33:56 +08:00 committed by Baoshuo Ren
parent c4a4e8ba38
commit b5061e2296
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

19
AcWing/767/767.cpp Normal file
View File

@ -0,0 +1,19 @@
#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;
}