Submission

Status:

PP-P----PP

Subtask/Task Score:

50/100

Score: 50

User: Kei

Problemset: ลูกเต๋า

Language: cpp

Time: 0.005 second

Submitted On: 2026-10-07 13:56:42

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

void solve(){
    string s;
    cin >> s;
    int thecase;
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            thecase=s[j]-'0';
            if(i==0 || i==2){
                if(thecase == 1 || thecase == 2){
                cout << "   ";
                }
                else if(thecase == 3){
                    cout << " * ";
                }
                else{
                    cout << "* *";
                }
                if(j!=2)
                cout<<'|';
            }
            if(i==1){
                if(thecase == 1 || thecase == 3 || thecase == 5){
                cout << " * ";
                }
                else if(thecase == 4){
                    cout << "  ";
                }
                else{
                    cout << "* *";
                }
                if(j!=2)
                cout<<'|';
            }
        }
        cout<<'\n';
    }
}

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