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