Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: SushiCodelnw
Problemset: ลูกเต๋า
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-26 12:55:18
#include <iostream>
using namespace std;
int main() {
string table1[7] = {""," ", " ", " * ", "* *", "* *", "* *"} ;
string table2[7] = {""," * ", "* *", " * ", " ", " * ", "* *"} ;
string table3[7] = {""," ", " ", " * ", "* *", "* *", "* *"} ;
string n;
cin >> n;
for (int i = 0; i < 3; i++) if (n[i] - '0' > 6 || n[i] - '0' <= 0) {
cout << "ERROR";
return 0;
}
cout << table1[n[0] - '0'] << "|" << table1[n[1] - '0'] << "|" << table1[n[2] - '0'] << endl;
cout << table2[n[0] - '0'] << "|" << table2[n[1] - '0'] << "|" << table2[n[2] - '0'] << endl;
cout << table3[n[0] - '0'] << "|" << table3[n[1] - '0'] << "|" << table3[n[2] - '0'] << endl;
return 0;
}