Submission

Status:

-----P----

Subtask/Task Score:

10/100

Score: 10

User: Newton4566

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-10 19:07:21

#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 < n.length(); ++j) {
            int page = n[j] - '0';
            if (page >= 1 && page <= 6) cout << dice[i][page];
            else cout << dice[i][0] << ' ';
        }
        cout << '\n';
    }

    return 0;
}