Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: SnowAveNode

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

Language: cpp

Time: 0.004 second

Submitted On: 2025-09-19 19:09:26

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

int main() {
    string pat[7][3] = {
        {"   ","   ","___"},
        {"   "," * ","   "},
        {" * ","   "," * "},
        {"*  "," * ","  *"},
        {"* *","   ","* *"},
        {"* *"," * ","* *"},
        {"* *","* *","* *"}
    };

    string s; cin >> s;
    for(int row = 0; row < 3; row++){
        for(int i = 0; i < s.size(); i++){
            int idx = s[i]-'0';
            if(idx < 1 || idx > 6) idx = 0;
            cout << pat[idx][row];
            if(i+1 != s.size()) cout << ' ';
        }
        cout << endl;
    }
}