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