Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: pann

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-07 03:46:29

#include <iostream>
using namespace std;

int main() {
    string n;
    cin >> n;
    string pattern[7][3] = {{"   ", " * ", "   "}, {" * ", "   ", " * "},
                            {"*  ", " * ", "  *"}, {"* *", "   ", "* *"},
                            {"* *", " * ", "* *"}, {"* *", "* *", "* *"},
                            {"   ", "   ", "___"}};
    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 3; j++) {
            if (n[j] - '0' >= 1 && n[j] - '0' <= 6)
                cout << pattern[n[j] - '0' - 1][i] << " ";
            else
                cout << pattern[6][i] << " ";
        }
        cout << "\n";
    }
    return 0;
}