Submission

Status:

-----P----

Subtask/Task Score:

10/100

Score: 10

User: pitt

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-12 13:30:47

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

int main(){
    string t[7] =   {"   ","   "," * ","*  ","* *","* *","* *"},
    m[7] =          {"   "," * ","   "," * ","   "," * ","* *"},
    l[7] =          {"___","   "," * ","  *","* *","* *","* *"};
    string a;
    cin >> a;
    for(int i = 0; i < a.length(); i++){
        if(a[i] - '0' > 0 && a[i] - '0' <= 6) cout << t[(a[i] - '0')];
        else cout << t[0] << " ";
        
    }
    cout << endl;
    for(int i = 0; i < a.length(); i++){
        if(a[i] - '0' > 0 && a[i] - '0' <= 6) cout << m[(a[i] - '0')];
        else cout << m[0] << " ";
    }
    cout << endl;
    for(int i = 0; i < a.length(); i++){
        if(a[i] - '0' > 0 && a[i] - '0' <= 6) cout << l[(a[i] - '0')];
        else cout << l[0] << " ";
    }
}