Submission
Status:
-----P----
Subtask/Task Score:
10/100
Score: 10
User: Karatat007
Problemset: ลูกเต๋า
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-01 10:49:26
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
string s;
cin >> s;
string l1 = "|";
string l2 = "|";
string l3 = "|";
for(int i = 0;i < 3;++i){
if(s[i] == 1){
l1 += " |";
l2 += " * |";
l3 += " |";
}
if(s[i] == 2){
l1 += " |";
l2 += "* *|";
l3 += " |";
}
if(s[i] == 3){
l1 += " * |";
l2 += " * |";
l3 += " * |";
}
if(s[i] == 4){
l1 += "* *|";
l2 += " |";
l3 += "* *|";
}
if(s[i] == 5){
l1 += "* *|";
l2 += " * |";
l3 += "* *|";
}
if(s[i] == 6){
l1 += "* *|";
l2 += "* *|";
l3 += "* *|";
}
}
for(int i = 0;i < 3;++i){
if(s[i] - '0' > 6){
cout << "ERROR";
break;
}
else{
cout << l1 << '\n' << l2 << '\n'<< l3;
}
}
}