Submission
Status:
[-SSSSSSSSS]
Subtask/Task Score:
{0/100}
Score: 0
User: Tjeez
Problemset: บาร์โค้ด
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-13 22:17:20
#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";
}
}