Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: helloskibidi

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

Language: cpp

Time: 0.005 second

Submitted On: 2026-10-04 23:49:59

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

int main(){
    vector<vector<string>> cube = {
        {"   "," * ","*  ","* *","* *","* *"},
        {" * ","   "," * ","   "," * ","* *"},
        {"   "," * ","  *","* *","* *","* *"}
    };
    string n; cin >> n;

    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            int d = n[j] - '0';
            if(d < 1 || d > 6) cout << (i == 2 ? "___" : "   ");
            else cout << cube[i][d - 1];
            cout << (j==2 ? "\n" : " ");
        }
    }
}