Submission
Status:
PPPP---PPP
Subtask/Task Score:
70/100
Score: 70
User: august
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.004 second
Submitted On: 2025-09-21 20:54:40
#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";
}
}