Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: mister_o_hater_no1

Problemset: ลูกเต๋า (2566)

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-19 10:43:31

    #include <bits/stdc++.h>
    using namespace std;
    int main() {
        cin.tie(nullptr)->sync_with_stdio(0);
        string dice[6][3]= {
            {"   ", " . ", "   "},
            {" . ", "   ", " . "},
            {".  ", " . ", "  ."},
            {". .", "   ", ". ."},
            {". .", " . ", ". ."},
            {". .",". .",". ."},
        };
        int n;cin>> n;
        string x= to_string(n); 
        for(int i= 0; i< 3; ++i) {
            for(int j= 0; j< x.length(); ++j) {
                if(x[j]- '1'< 0 || x[j]- '1'> 5) {
                    cout<< "_";
                    continue;
                }
                cout<< dice[x[j]- '1'][i];
            }
            cout << "\n";
        }

        return 0;
    }