Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: CA

Problemset: ลูกเต๋า

Language: cpp

Time: 0.002 second

Submitted On: 2026-09-21 11:12:40

#include <iostream>
#include <string>
using namespace std;

int main() {
    string d;
    cin >> d;
    string outer, inner;

    for (int i = 0; i < 3; i++) {
        int cur = d[i] - '0';

        if (cur < 3) {
            outer.append("|   |");
        }
        else if (cur == 3) {
            outer.append("| * |");
        }
        else if (cur > 3) {
            outer.append("|* *|");
        }
    }

    for (int i = 0; i < 3; i++) {
        int cur = d[i] - '0';

        if (cur % 2 != 0) {
            inner.append("| * |");
        }
        else if (cur == 2 || cur == 6) {
            inner.append("|* *|");
        }
        else if (cur == 4) {
            inner.append("|   |");
        }
    }
    cout << outer << "\n";
    cout << inner << "\n";
    cout << outer << "\n";
    return 0;
}