Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: IKKIWPR
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-13 16:29:24
#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 < 3; 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 < 3; 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 < 3; i++){
if(a[i] - '0' > 0 && a[i] - '0' <= 6) cout << l[(a[i] - '0')] << " ";
else cout << l[0] << " ";
}
}