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:35:37
#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 || b>6 || c>6){
cout << " ";
}
cout << first[a];
cout << first[b];
cout << first[c];
cout << "\n";
if(a>6 || b>6 || c>6){
cout << " ";
}
cout << second[a];
cout << second[b];
cout << second[c];
cout << "\n";
if(a>6 || b>6 || c>6){
cout << "___";
}
cout << third[a];
cout << third[b];
cout << third[c];
}