Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Phat12

Problemset: ลูกเต๋า

Language: cpp

Time: 0.002 second

Submitted On: 2025-08-27 21:35:04

#include <bits/stdc++.h>
#define rizz ios_base::sync_with_stdio(false);cin.tie(nullptr)
#define yap cout
using namespace std;
char dice[6][3][4] = {
                   {"   "," * ","   "},
                   {"   ","* *","   "},
                   {" * "," * "," * "},
                   {"* *","   ","* *"},
                   {"* *"," * ","* *"},
                   {"* *","* *","* *"}
                };
int main(){
    rizz;
    string a;
    cin >> a;
    int n = a.size();
    for (auto &c : a){
        if (c>'6') {
            cout << "ERROR";
            return 0;
        }
    }
    for (int i=0;i<3;i++){

        for (int k=0;k<n;k++){
            for (int j=0;j<3;j++){
                cout << dice[a[k]-'1'][i][j];
            }
            if (k!=n-1)cout << '|';       
        }
        cout << '\n';
    }
    return 0;
}