'commit'
This commit is contained in:
17
TangDou/XiTi/1090.cpp
Normal file
17
TangDou/XiTi/1090.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
string s;
|
||||
getline(cin, s);
|
||||
|
||||
for (int i = 0; i < s.length(); ++i) {
|
||||
if ((s[i] >= 'a' && s[i] <= 'y') || (s[i] >= 'A' && s[i] <= 'Y')) {
|
||||
cout << char(s[i] + 1);
|
||||
} else if (s[i] == 'z' || s[i] == 'Z') {
|
||||
cout << 'a';
|
||||
} else cout << s[i];
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user