Submission

Status:

PPPPPxxPPP

Subtask/Task Score:

80/100

Score: 80

User: onlyme910

Problemset: ลูกเต๋า

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-08 08:01:46

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

int toint(char n){
    int k = n-'0';
    return k;
}

int main(){
    string dicet[6] = {"   ", "   "," * ","* *","* *","* *"};
    string dicem[6] = {" * ", "* *"," * ","   "," * ","* *"};
    string diceb[6] = {"   ", "   "," * ","* *","* *","* *"};
    string s;
    cin >> s;
    for(int j = 0;j<3;j++){
        cout << dicet[toint(s[j])-1];
        if(j != 2)cout << "|";
        else cout << endl;
    }
    for(int j = 0;j<3;j++){
        cout << dicem[toint(s[j])-1];
        if(j != 2)cout << "|";
        else cout << endl;
    }
    for(int j = 0;j<3;j++){
        cout << diceb[toint(s[j])-1];
        if(j != 2)cout << "|";
        else cout << endl;
    }
}