Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: onlyme910
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-08 20:26:29
#include <bits/stdc++.h>
using namespace std;
int main(){
string s;cin >> s;
string dicet[7] = {" "," * ","* ","* *","* *","* *"," "};
string dicem[7] = {" * "," "," * "," "," * ","* *"," "};
string diceb[7] = {" "," * "," *","* *","* *","* *","___"};
int sl = s.length();
for(int i = 0;i<sl;i++){
if(s[i] -'0' > 6){
s[i] = '7';
}
}
for(int i =0;i<sl;i++){
cout << dicet[s[i]-'0'-1];
if(i != sl-1)cout << " ";
}
cout << endl;
for(int i =0;i<sl;i++){
cout << dicem[s[i]-'0'-1];
if(i != sl-1)cout << " ";
}
cout << endl;
for(int i =0;i<sl;i++){
cout << diceb[s[i]-'0'-1];
if(i != sl-1)cout << " ";
}
cout << endl;
}