Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: Nuttykub

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-01 15:25:56

#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    
    string s;
    cin >> s;
    string face[8][3] = {
        {},
        {"   "," * ","   "},
        {" * ","   "," * "},
        {"*  "," * ","  *"},
        {"* *","   ","* *"},
        {"* *"," * ","* *"},
        {"* *","* *","* *"},
        {"   ","   ","___"}
    };
    for (int i = 0;i < 3;i++){
        for (int j =0;j<3;j++){
            int n = s[j]-'0';
            if (n > 6) n = 7;
            cout << face[n][i];
        }
        cout << endl;
    }
}