Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Kei

Problemset: ลูกเต๋า (2566)

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-07 15:37:57

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

void solve(){
    //b16->b2&b8
    string s; cin >> s;
    int thenum;
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            thenum=s[j]-'0';
            if(j>0) cout<<' ';
            if(i==0){
                if(thenum>6){
                    cout<<"   ";
                }
                else if(thenum==1)cout<<"   ";
                else if(thenum==2)cout<<" * ";
                else if(thenum==3)cout<<"*  ";
                else cout<<"* *";
                continue;
            }
            if(i==1){
                if(thenum>6){
                    cout<<"   ";
                }
                else if(thenum==1)cout<<" * ";
                else if(thenum==2 || thenum==4)cout<<"   ";
                else if(thenum==3 || thenum==5)cout<<" * ";
                else cout<<"* *";
                continue;
            }
            if(thenum>6){
                cout<<"___";
            }
            else if(thenum==1)cout<<"   ";
            else if(thenum==2)cout<<" * ";
            else if(thenum==3)cout<<"  *";
            else cout<<"* *";
        }
        cout<<'\n';
    }
}

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    solve();
    return 0;
}