-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patha008.cpp
More file actions
39 lines (29 loc) · 722 Bytes
/
a008.cpp
File metadata and controls
39 lines (29 loc) · 722 Bytes
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
#include <iostream>
using namespace std;
int
main()
{
string n[10] = {"¹s", "³ü", "¶L", "°Ñ", "¸v", "¥î", "³°", "¬m", "®Ã", "¨h"};
string m[10] = {"¬B", "¨Õ", "¥a", "¸U", "¬B", "¨Õ", "¥a", "»õ", "¬B", "¨Õ"};
char input[10];
int i, j, length;
while(cin >> input)
{
i = 0;
while(input[i] != '\0')
i++;
length = i - 1;
for(i = length; i >= 0; i--)
{
j = input[length - i] - '0';
if ((i && j) || (!i && j))
{
cout << n[j];
if (i > 0)
cout << m[i - 1];
}
}
cout << endl;
}
return 0;
}