Submission

Status:

PPPPP--PPP

Subtask/Task Score:

80/100

Score: 80

User: kinzap

Problemset: ลูกเต๋า

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-12 13:50:58

#include <iostream>
using namespace std;

int n,a[3];

int main(){
    cin >> n;
    a[2]=n%10;
    n/=10;
    a[1]=n%10;
    n/=10;
    a[0]=n%10;

    for(int i = 0;i<3;i++){
        if(a[i]==1){
            cout << "   ";
        }
        else if(a[i] == 2){
            cout << "   ";
        }
        else if(a[i] == 3){
            cout << " * ";
        }
        else if(a[i] == 4){
            cout << "* *";
        }
        else if(a[i] == 5){
            cout << "* *";
        }
        else if(a[i] == 6){
            cout << "* *";
        }
        if(i!=2)cout << "|";
    }
    cout << endl;
    for(int i = 0;i<3;i++){
        if(a[i]==1){
            cout << " * ";
        }
        else if(a[i] == 2){
            cout << "* *";
        }
        else if(a[i] == 3){
            cout << " * ";
        }
        else if(a[i] == 4){
            cout << "   ";
        }
        else if(a[i] == 5){
            cout << " * ";
        }
        else if(a[i] == 6){
            cout << "* *";
        }
        if(i!=2)cout << "|";
    }
    cout << endl;
    for(int i = 0;i<3;i++){
        if(a[i]==1){
            cout << "   ";
        }
        else if(a[i] == 2){
            cout << "   ";
        }
        else if(a[i] == 3){
            cout << " * ";
        }
        else if(a[i] == 4){
            cout << "* *";
        }
        else if(a[i] == 5){
            cout << "* *";
        }
        else if(a[i] == 6){
            cout << "* *";
        }
        if(i!=2)cout << "|";
    }
    

}