Submission

Status:

PPPPPx-PPP

Subtask/Task Score:

80/100

Score: 80

User: Newton4566

Problemset: ลูกเต๋า

Language: cpp

Time: 0.002 second

Submitted On: 2026-09-21 13:22:55

#include <iostream>
using namespace std;

int main() {
    int input;
    cin >> input;

    string one[6] = {"   ", "   ", " * ", "* *", "* *", "* *"};
    string two[6] = {" * ", "* *", " * ", "   ", " * ", "* *"};
    string three[6] = {"   ", "   ", " * ", "* *", "* *", "* *"};

    cout << one[(input / 100) - 1] << '|' << one[((input / 10) % 10) - 1] << '|' << one[(input % 10) - 1] << endl;
    cout << two[(input / 100) - 1] << '|' << two[((input / 10) % 10) - 1] << '|' << two[(input % 10) - 1] << endl;
    cout << three[(input / 100) - 1] << '|' << three[((input / 10) % 10) - 1] << '|' << one[(input % 10) - 1] << endl;

    return 0;
}