1 solutions
-
0
C++ :
#include<iostream> #include<string> using namespace std; int main() { string s; getline(cin,s); for (int i=0; s[i]!='\0'; i++) if ((s[i]>='a'&&s[i]<='y') || (s[i]>='A'&&s[i]<='Y')) s[i]++; else if (s[i]=='z' || s[i]=='Z') s[i]-=25; cout<<s<<endl; return 0; }
- 1
Information
- ID
- 19118
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- (None)
- # Submissions
- 0
- Accepted
- 0
- Uploaded By