Submission

Status:

PP--PP--P-

Subtask/Task Score:

50/100

Score: 50

User: SnowAveNode

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-19 19:04:51

#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;
    }
}