Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- char method(char x){
- string y="\'d";
- if(x=='/') return '.';
- if(x==' ') return ' ';
- else if(x=='.') return ',';
- else if(x==',') return 'M';
- else if(x=='M') return 'N';
- else if(x=='N') return 'B';
- else if(x=='B') return 'V';
- else if(x=='V') return 'C';
- else if(x=='C') return 'X';
- else if(x=='X') return 'Z';
- else if(x==y[1]) return ';';
- else if(x==';') return 'L';
- else if(x=='L') return 'K';
- else if(x=='K') return 'J';
- else if(x=='J') return 'H';
- else if(x=='H') return 'G';
- else if(x=='G') return 'F';
- else if(x=='F') return 'D';
- else if(x=='D') return 'S';
- else if(x=='S') return 'A';
- else if(x==y[0]) return ''; ///y[0]='\' ;
- else if(x==']') return '[';
- else if(x=='[') return 'P';
- else if(x=='P') return 'O';
- else if(x=='O') return 'I';
- else if(x=='I') return 'U';
- else if(x=='U') return 'Y';
- else if(x=='Y') return 'T';
- else if(x=='T') return 'R';
- else if(x=='R') return 'E';
- else if(x=='E') return 'W';
- else if(x=='W') return 'Q';
- else if(x=='=') return '-';
- else if(x=='-') return '0';
- else if(x=='0') return '9';
- else if(x=='9') return '8';
- else if(x=='8') return '7';
- else if(x=='7') return '6';
- else if(x=='6') return '5';
- else if(x=='5') return '4';
- else if(x=='4') return '3';
- else if(x=='3') return '2';
- else if(x=='2') return '1';
- else if(x=='1') return '`';
- }
- int main(){
- long long len;
- string myString;
- while(getline(cin,myString)){
- len=myString.length();
- for(long long i=0;i<len;i++){
- myString[i]=method(myString[i]);
- cout<<myString[i];
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement