Submission

Status:

PP--PP--P-

Subtask/Task Score:

50/100

Score: 50

User: sakuragichan

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-09-05 23:14:54

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

int main() {
    string s;
    cin >> s;
    string num[6][3] = {
        {{"   "},
         {" * "},
         {"   "}},

        {{" * "},
         {"   "},
         {" * "}},

        {{"*  "},
         {" * "}, 
         {"  *"}},

        {{"* *"}, 
         {"   "}, 
         {"* *"}},

        {{"* *"}, 
         {" * "}, 
         {"* *"}},

        {{"* *"}, 
         {" * "}, 
         {"* *"}},
    };
    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 3; j++) {
            if (stoi(string(1, s[j])) <=6) {
                cout << num[stoi(string(1, s[j]))-1][i];
            }
            else {
                if (i == 2) {
                    cout << "___";
                }
                else {
                    cout << "   ";
                }
            }
            cout << " ";
        }
        cout << endl;
    }
    return 0;
}