2 solutions
-
3
Peter is Strong!!!
Tymon is Strong!!!
Nathan is Strong!!!
Adam is the strongest!!!!!
#include<iostream> #include<string.h> using namespace std; int main() { string a; getline(cin, a); for(int i=0;i<a.size();i++) { if(a[i] >= 'a' && a[i] <= 'y') { a[i]+=1; } else if(a[i] >= 'A' && a[i] <= 'Y') { a[i]+=1; } else if(a[i]== 'z') { a[i]='a'; } else if(a[i] == 'Z') { a[i]='A'; } } cout << a; }
Information
- ID
- 1928
- Time
- 1000ms
- Memory
- 64MiB
- Difficulty
- 8
- Tags
- # Submissions
- 17
- Accepted
- 7
- Uploaded By