-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10082.cpp
116 lines (111 loc) · 2.2 KB
/
10082.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*
10082 - WERTYU
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
char c;
while(scanf("%c",&c)==1)
{
if(c=='1')
printf("`");
if(c=='2')
printf("1");
if(c=='3')
printf("2");
if(c=='4')
printf("3");
if(c=='5')
printf("4");
if(c=='6')
printf("5");
if(c=='7')
printf("6");
if(c=='8')
printf("7");
if(c=='9')
printf("8");
if(c=='10')
printf("9");
if(c=='0')
printf("9");
if(c=='-')
printf("0");
if(c=='=')
printf("-");
if(c=='W')
printf("Q");
if(c=='E')
printf("W");
if(c=='R')
printf("E");
if(c=='T')
printf("R");
if(c=='Y')
printf("T");
if(c=='U')
printf("Y");
if(c=='I')
printf("U");
if(c=='O')
printf("I");
if(c=='P')
printf("O");
if(c=='[')
printf("P");
if(c==']')
printf("[");
if(c=='\\')
printf("]");
if(c=='S')
printf("A");
if(c=='D')
printf("S");
if(c=='F')
printf("D");
if(c=='G')
printf("F");
if(c=='H')
printf("G");
if(c=='J')
printf("H");
if(c=='K')
printf("J");
if(c=='L')
printf("K");
if(c==';')
printf("L");
if(c=='\'')
printf(";");
if(c=='X')
printf("Z");
if(c=='C')
printf("X");
if(c=='V')
printf("C");
if(c=='B')
printf("V");
if(c=='N')
printf("B");
if(c=='M')
printf("N");
if(c==',')
printf("M");
if(c=='.')
printf(",");
if(c=='/')
printf(".");
if(c==' ')
printf(" ");
if(c=='\n')
printf("\n");
}
return 0;
}
/*
Sample Input
O S, GOMR YPFSU/
Sample Output
I AM FINE TODAY.
*/