-
Notifications
You must be signed in to change notification settings - Fork 0
/
10222 accepted.cpp
96 lines (94 loc) · 2.21 KB
/
10222 accepted.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
int main()
{
string x;
while(getline(cin,x)){
for(int i=0;x[i];i++){
if(x[i]=='=')
cout<<'0';
if(x[i]=='-')
cout<<'9';
if(x[i]=='0')
cout<<'8';
if(x[i]=='9')
cout<<'7';
if(x[i]=='8')
cout<<'6';
if(x[i]=='7')
cout<<'5';
if(x[i]=='6')
cout<<'4';
if(x[i]=='5')
cout<<'3';
if(x[i]=='4')
cout<<'2';
if(x[i]=='3')
cout<<'1';
if(x[i]=='2')
cout<<'`';
if(x[i]==']')
cout<<'p';
if(x[i]=='[')
cout<<'o';
if(x[i]=='P' || x[i]=='p')
cout<<'i';
if(x[i]=='O' || x[i]=='o')
cout<<'u';
if(x[i]=='I' || x[i]=='i')
cout<<'y';
if(x[i]=='U' || x[i]=='u')
cout<<'t';
if(x[i]=='Y' || x[i]=='y')
cout<<'r';
if(x[i]=='T' ||x[i]=='t')
cout<<'e';
if(x[i]=='R' || x[i]=='r')
cout<<'w';
if(x[i]=='E' || x[i]=='e')
cout<<'q';
if(x[i]=='\\')
cout<<';';
if(x[i]=='\'')
cout<<'l';
if(x[i]==';')
cout<<'k';
if(x[i]=='L' || x[i]=='l')
cout<<'j';
if(x[i]=='K' ||x[i]=='k')
cout<<'h';
if(x[i]=='J' || x[i]=='j')
cout<<'g';
if(x[i]=='H' || x[i]=='h')
cout<<'f';
if(x[i]=='G' || x[i]=='g')
cout<<'d';
if(x[i]=='F' || x[i]=='f')
cout<<'s';
if(x[i]=='D' || x[i]=='d')
cout<<'a';
if(x[i]=='/')
cout<<',';
if(x[i]=='.')
cout<<'m';
if(x[i]==',')
cout<<'n';
if(x[i]=='M' || x[i]=='m')
cout<<'b';
if(x[i]=='N' || x[i]=='n')
cout<<'v';
if(x[i]=='B' || x[i]=='b')
cout<<'c';
if(x[i]=='V' || x[i]=='v')
cout<<'x';
if(x[i]=='C' || x[i]=='c')
cout<<'z';
if(x[i]==32)
cout<<" ";
}
cout<<endl;
}
return 0;
}