-
Notifications
You must be signed in to change notification settings - Fork 0
/
12764.cc
43 lines (38 loc) · 1022 Bytes
/
12764.cc
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
#include <iostream>
#include <string>
using namespace std;
int main(){
string line1 [10] = {"\\ / "," o "," "," ","_o_ ","\\o/ ","\\o_ ","\\o/ "," "," o "};
string line2 [10] = {" | ","/|\\ "," "," "," | "," | ","\\| ","\\|/ "," __o","( ) "};
string line3 [10] = {"/o\\ ","/ \\ ","__\\o","\\_\\o","/ \\ ","/ \\ "," | "," ","/ |","/ \\ "};
int t;
string junk;
cin >> t;
getline(cin,junk);
for(int i = 0;i < t;i++){
string movie;
getline(cin,movie);
for(int j = 0;j < movie.length();j++){
cout << line1[movie[j]-'0'];
if(j != (movie.length()-1))
cout << ' ';
else
cout << endl;
}
for(int j = 0;j < movie.length();j++){
cout << line2[movie[j]-'0'];
if(j != (movie.length()-1))
cout << ' ';
else
cout << endl;
}
for(int j = 0;j < movie.length();j++){
cout << line3[movie[j]-'0'];
if(j != (movie.length()-1))
cout << ' ';
else
cout << endl;
}
cout << endl;
}
}