Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Punnavich

Problemset: ลูกเต๋า

Language: python

Time: 0.011 second

Submitted On: 2026-03-30 17:28:47

s=input()
row=0
ok=True
if len(s)!=3:
    ok=False
for a in s:
    if a< '1'or a >'6':
        ok=False
if not ok:
    print("ERROR")
else:   
    for i in range(3):
        for j in range(3):
            c=s[j]
            if c=='1':
                row=["   "," * ","   "]
            elif c=='2':
                row=["   ","* *","   "]
            elif c=='3':
                row=[" * "," * "," * "]
            elif c=='4':
                row =["* *","   ","* *"]
            elif c=='5':
                row=["* *"," * ","* *"]
            elif c=='6':
                row=["* *","* *","* *"]
            print(row[i], end="")
            if j<2:
                print("|",end="")
        print()