Submission
Status:
-----PP---
Score: 20
User: Namkhing
Problemset: ลูกเต๋า
Language: cpp
Time: 0.002 second
Submitted On: 2025-04-10 22:26:02
#include <bits/stdc++.h>
using namespace std;
string s[7][3];
int main() {
cin.tie(nullptr)->ios_base::sync_with_stdio(false);
s[1][0] = " ";
s[1][1] = " * ";
s[1][2] = " ";
s[2][0] = " ";
s[2][1] = "* *";
s[2][2] = " ";
s[3][0] = " * ";
s[3][1] = " * ";
s[3][2] = " * ";
s[4][0] = "* *";
s[4][1] = " ";
s[4][2] = "* *";
s[5][0] = "* *";
s[5][1] = " * ";
s[5][2] = "* *";
s[6][0] = "* *";
s[6][1] = "* *";
s[6][2] = "* *";
string t;
cin >> t;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (t[j] > 6) {
cout << "ERROR";
return 0;
}
cout << s[t[j]-'0'][i];
if (j != 2) cout << "|";
}
cout << "\n";
}
}