-
Notifications
You must be signed in to change notification settings - Fork 139
/
Encrypted Love
84 lines (82 loc) · 1.03 KB
/
Encrypted Love
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
#include<bits/stdc++.h>
#include<string.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
long long num,t=0,i;
cin>>num;
while(num--)
{
string str;
cin>>str;
for(i=0;i<str.length();i++)
{
if(str[i]-48>0 ) {
t=(t*10)+(str[i]-48);
}
if(str[i]-48<0 || i==str.length()-1){
//cout<<t<<" ";
switch (t)
{
case 2: cout<<"a";
break;
case 22: cout<<"b";
break;
case 222: cout<<"c";
break;
case 3: cout<<"d";
break;
case 33: cout<<"e";
break;
case 333: cout<<"f";
break;
case 4: cout<<"g";
break;
case 44: cout<<"h";
break;
case 444:cout<<"i";
break;
case 5:cout<<"j";
break;
case 55:cout<<"k";
break;
case 555:cout<<"l";
break;
case 6:cout<<"m";
break;
case 66:cout<<"n";
break;
case 666:cout<<"o";
break;
case 7:cout<<"p";
break;
case 77:cout<<"q";
break;
case 777:cout<<"r";
break;
case 7777:cout<<"s";
break;
case 8:cout<<"t";
break;
case 88:cout<<"u";
break;
case 888:cout<<"v";
break;
case 9:cout<<"w";
break;
case 99:cout<<"x";
break;
case 999:cout<<"y";
break;
case 9999:cout<<"z";
break;
}
t=0;
}
}
cout<<endl;
}
return 0;
}