Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: mik
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-10 20:56:13
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false),cin.tie(NULL);
string s;
string d[3][7] = {{" "," "," * ","* ","* *","* *","* *"},{" "," * "," "," * "," "," * ","* *"},{"___"," "," * "," *","* *","* *","* *"}};
int a;
cin >> s;
for (int k=0;k<3;k++){
for (int i=0;i<3;i++){
a = s[i]-'0';
if (a<1 || a>6) a = 0;
cout << d[k][a] << ' ';
}
cout << '\n';
}
return 0;
}