Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Newton4566

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-10 19:13:11

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

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    const string dice[3][7] = {
        {"   ", "   ", " * ", "*  ", "* *", "* *", "* *"},
        {"   ", " * ", "   ", " * ", "   ", " * ", "* *"},
        {"___", "   ", " * ", "  *", "* *", "* *", "* *"}
    };

    string n;
    cin >> n;

    for (int i = 0; i < 3; ++i) {
        for (int j = 0; j < 3; ++j) {
            int page = n[j] - '0';
            if (page >= 1 && page <= 6) cout << dice[i][page] << ' ';
            else cout << dice[i][0] << ' ';
        }
        cout << '\n';
    }

    return 0;
}