Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: solarsunny

Problemset: ลูกเต๋า

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-07 19:50:09

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

string t[3][6] = {{"   ","   "," * ","* *","* *","* *"},
                  {" * ","* *"," * ","   "," * ","* *"},
                  {"   ","   "," * ","* *","* *","* *"}};


int main() {
    ios_base::sync_with_stdio(false); 
    cin.tie(NULL);
    int n;
    cin >> n;
    n = n - 111;
    
    int o = n%10;
    n = n/10;
    int s = n%10;
    n = n/10;
    int a = n%10;
    if(o > 5 || s > 5 || a > 5) {
        cout << "ERROR" << "\n";
        return 0;
    }
    for(int i=0; i<3; i++) {
        cout << t[i][a] << "|" << t[i][s] << "|" << t[i][o];
        cout << "\n";
    }
    return 0;
}