Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: kakcode

Problemset: ลูกเต๋า

Language: cpp

Time: 0.002 second

Submitted On: 2025-11-11 22:18:23

/*
TASK: c1_bkk64_5
LANG: C++
AUTHOR: ICE
*/
#include <bits/stdc++.h>
using ll = long long;
#define forr(i, a, n) for (int i = a; i < n; i++)
const ll inf = 10e9;
#define int ll
using namespace std;
using pii = pair<int,int>;
signed main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    string num;
    cin >> num;
    string dice[6][3] = {{"   "," * ","   "},{"   ","* *","   "},{" * "," * "," * "},{"* *","   ","* *"},{"* *"," * ","* *"},{"* *","* *","* *"}}; 
    if(num[2] - '0' > 6 || num[1] - '0'> 6 || num[0] - '0' > 6 )cout << "ERROR";
    else{
        for(int i=0;i<3;i++){
            for(int j=0;j<3;j++){
                int tmp = num[j] - '0' - 1;
                cout << dice[tmp][i];
                if(j != 2)cout << "|";
            }
            cout << '\n';
        }
    }
    return 0;
}