-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path23738.cpp
48 lines (46 loc) · 806 Bytes
/
23738.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
// 23738. Ресторан
// 2022.03.10
// 구현
#include<iostream>
#include<string>
using namespace std;
int main()
{
string s;
cin >> s;
for (int i = 0; i < s.length(); i++)
{
if (s[i] == 'B')
{
cout << 'v';
}
else if (s[i] == 'E')
{
cout << "ye";
}
else if (s[i] == 'H')
{
cout << 'n';
}
else if (s[i] == 'P')
{
cout << 'r';
}
else if (s[i] == 'C')
{
cout << 's';
}
else if (s[i] == 'Y')
{
cout << 'u';
}
else if (s[i] == 'X')
{
cout << 'h';
}
else
{
cout << (char)(s[i] - 'A' + 'a');
}
}
}