Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: Peerawat
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-13 16:41:12
#include <bits/stdc++.h>
using namespace std;
int main(){
string first[7] = {" "," "," . ",". ",". .",". .",". ."};
string second[7]= {" "," . "," "," . "," "," . ",". ."};
string third[7] = {"___"," "," . "," .",". .",". .",". ."};
string s;
cin >> s;
int a = s[0] - '0';
int b = s[1] - '0';
int c = s[2] - '0';
if(a>6){
cout << first[0];
}
else{
cout << first[a];
}
if(b>6){
cout << first[0];
}
else{
cout << first[b];
}
if(c>6){
cout << first[0];
}
else{
cout << first[c];
}
cout << "\n";
if(a>6){
cout << second[0];
}
else{
cout << second[a];
}
if(b>6){
cout << second[0];
}
else{
cout << second[b];
}
if(c>6){
cout << second[0];
}
else{
cout << second[c];
}
cout << "\n";
if(a>6){
cout << third[0];
}
else{
cout << third[a];
}
if(b>6){
cout << third[0];
}
else{
cout << third[b];
}
if(c>6){
cout << third[0];
}
else{
cout << third[c];
}
}