Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: .n0t_gloomy.

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-29 21:46:46

#include <bits/stdc++.h>
using namespace std;
int main()
{
    vector<string> top = {"   ","   "," * ","*  ","* *","* *","* *"}; 
    vector<string> mid ={"   "," * ","   "," * ","   "," * ","* *"}; 
    vector<string> bot ={"___","   "," * ","  *","* *","* *","* *"}; 
    char a,b,c;
    cin>>a>>b>>c;
    if (a-'0' > 6) a = '0';
    if (b-'0' > 6) b = '0';
    if (c-'0' > 6) c = '0';
    cout<<top[a-'0']<<" "<<top[b-'0']<<" "<<top[c-'0']<<"\n";
    cout<<mid[a-'0']<<" "<<mid[b-'0']<<" "<<mid[c-'0']<<"\n";
    cout<<bot[a-'0']<<" "<<bot[b-'0']<<" "<<bot[c-'0']<<"\n";
    return 0;
}