Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: Zailagend1
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.004 second
Submitted On: 2026-08-02 19:16:21
#include<bits/stdc++.h>
using namespace std;
unordered_map<char,vector<string>> dot = {
{'1',{
" ",
" * ",
" "
}},
{'2',{
" * ",
" ",
" * "
}},
{'3',{
"* ",
" * ",
" *"
}},
{'4',{
"* *",
" ",
"* *"
}},
{'5',{
"* *",
" * ",
"* *"
}},
{'6',{
"* *",
"* *",
"* *"
}},
};
int main(){
string a;
cin >> a;
vector<vector<string>> b(3,vector<string>(3*(a.size())));
int k = 0;
for(int i = 0;i<3;i++){
for(int z = 0;z<3;z++){
int s = a[k] - '0';
if(s > 6 || s <1){
if((i == 2)){
cout << "___";
}else{
cout << " ";
}
k++;
continue;
}
cout << dot[a[k]][i];
k++;
}
cout << '\n';
k = 0;
}
}