Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Tjeez
Problemset: ลูกเต๋า
Language: cpp
Time: 0.003 second
Submitted On: 2026-10-13 22:20:08
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
string s; cin>>s;
for (int i=0 ; i<s.length() ; i++){
if (s[i]>'6'||s[i]<'1'){
cout<<"ERROR";
return 0;
}
}
string arr[6][3]{
{" "," * "," "},{" ","* *"," "},{" * "," * "," * "},
{"* *"," ","* *"},{"* *"," * ","* *"},{"* *","* *","* *"}
};
for (int i=0 ; i<3;i++){
for (int j=0 ; j<3 ;j++){
cout<<arr[s[j]-'1'][i];
if (j!=2) cout<<"|";
}
cout<<"\n";
}
}