Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Jxricho
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-16 10:19:01
#include<bits/stdc++.h>
using namespace std;
main(){
string s;
cin>>s;
map<char,vector<string>> mp;
mp['1']={" "," * "," "};
mp['2']={" * "," "," * "};
mp['3']={"* "," * "," *"};
mp['4']={"* *"," ","* *"};
mp['5']={"* *"," * ","* *"};
mp['6']={"* *","* *","* *"};
for(int j=0;j<3;j++){
for(int i=0;i<s.size();i++){
if(s[i]>='1'&&s[i]<='6'){
cout<<mp[s[i]][j];
}
else{
if(j==2){
cout<<"___";
}
else{
cout<<" ";
}
}
if(i<s.size()-1) cout<<" ";
}
cout<<'\n';
}
}