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 |
#include <iostream> #include <string.h> #include <string> #include <stdio.h> using namespace std; string a[10]; string b[10]; string c[10]; int main() { a[0]="\\ / "; b[0]=" | "; c[0]="/o\\ "; a[1]=" o "; b[1]="/|\\ "; c[1]="/ \\ "; a[2]=" "; b[2]=" "; c[2]="__\\o"; a[3]=" "; b[3]=" "; c[3]="\\_\\o"; a[4]="_o_ "; b[4]=" | "; c[4]="/ \\ "; a[5]="\\o/ "; b[5]=" | "; c[5]="/ \\ "; a[6]="\\o_ "; b[6]="\\| "; c[6]=" | "; a[7]="\\o/ "; b[7]="\\|/ "; c[7]=" "; a[8]=" "; b[8]=" __o"; c[8]="/ |"; a[9]=" o "; b[9]="( ) "; c[9]="/ \\ "; //cout<<c[0]<<"a"; int t,x,ct=0,org; string str; cin>>t; org=t; while(t--) { cin>>str; ct++; for(int i=0;i<3;i++) { for(int j=0;j<str.size();j++) { x = str[j]-'0'; if(i==0) cout<<a[x]; else if(i==1) cout<<b[x]; else if(i==2) cout<<c[x]; if(j!=(str.size()-1)) cout<<" "; else cout<<"\n"; } //cout<<"\n"; } //if(ct<=org-1) cout<<"\n"; } return 0; } |