Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: tha_smith
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-12 15:12:07
#include <iostream>
using namespace std;
int main() {
string s[7][3] = {
{
{" "},
(" "),
{"___"}
},
{
{" "},
(" * "),
{" "}
},
{
{" * "},
(" "),
{" * "}
},
{
{"* "},
(" * "),
{" *"}
},
{
{"* *"},
(" "),
{"* *"}
},
{
{"* *"},
(" * "),
{"* *"}
},
{
{"* *"},
("* *"),
{"* *"}
}
};
int n;
cin >> n;
int a = n/100;
int b = (n/10)%10;
int c = n%10;
if(a<1 || a>6) {
a=0;
}
if(b<1 || b>6) {
b=0;
}
if(c<1 || c>6) {
c=0;
}
for(int i=0; i<3; i++) {
cout << s[a][i] << " " << s[b][i] << " " << s[c][i] << endl;
}
}