Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: august
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-21 20:55:09
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0)->sync_with_stdio(0);
string n;
cin>> n;
for (int i=0; i<3; i++) if (n[i]-'0' > 6) n[i]='0';
vector<vector<string>> a(3);
a[0]={" "," "," * ","* ","* * ","* * ","* * "};
a[1]={" "," * "," "," * "," "," * ","* * "};
a[2]={"___ "," "," * "," * ","* * ","* * ","* * "};
for (int i=0; i<3; i++) {
for (auto x : n) {
cout<< a[i][x-'0'];
}
cout<< "\n";
}
}