Submission
Status:
-----PP---
Subtask/Task Score:
20/100
Score: 20
User: punzacp555
Problemset: ลูกเต๋า
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-02 21:20:05
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0)->sync_with_stdio(0);
string s;
cin >> s;
for(int i=0; i<3; i++) if(s[i]-'0' > 6 || s[i]-'0' <= 0) {cout << "ERROR"; return 0;}
vector<vector<string>> faces = {{" ", " ", " * ", "* *", "* *", "* *"},
{" * ", "* *", " * ", " ", " * ", "* *"},
{" ", " ", " * ", "* *", "* *", "* *"}};
for(int i=0; i<3; i++) {
for(int j=0; j<3; j++) {
cout << faces[i][s[j]-'0'-1] << '|';
}
cout << "\n";
}
return 0;
}