Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: pitt

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-10-12 13:14:00

#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];
    }
}