Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Peerawat

Problemset: ลูกเต๋า

Language: cpp

Time: 0.005 second

Submitted On: 2026-10-13 16:29:20

#include <bits/stdc++.h>
using namespace std;

int main(){

    string first[7] = {"","   ","   "," * ","* *","* *","* *"};
    string second[7]= {""," * ","* *"," * ","   "," * ","* *"};
    string third[7] = {"","   ","   "," * ","* *","* *","* *"};


    string s;
    cin >> s;

    int a = s[0] - '0';
    int b = s[1] - '0';
    int c = s[2] - '0';

    if(a>6 || b>6 || c>6){
        cout << "ERROR";
        return 0;
    }

    cout << first[a];
    cout << "|";
    cout << first[b];
    cout << "|";
    cout << first[c];

    cout << "\n";

    cout << second[a];
    cout << "|";
    cout << second[b];
    cout << "|";
    cout << second[c];

    cout << "\n";

    cout << third[a];
    cout << "|";
    cout << third[b];
    cout << "|";
    cout << third[c];







}