Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: anonymous

Problemset: Croissant Display

Language: cpp

Time: 0.003 second

Submitted On: 2026-11-01 16:57:39

#include <bits/stdc++.h>
using namespace std;

int main(){
    string clock[10][5] = {
    {
        "###",
        "# #",
        "# #",
        "# #",
        "###"
    },
    {
        "  #",
        "  #",
        "  #",
        "  #",
        "  #"
    },
    {
        "###",
        "  #",
        "###",
        "#  ",
        "###",
    },
    {
        "###",
        "  #",
        "###",
        "  #",
        "###"
    },
    {
        "# #",
        "# #",
        "###",
        "  #",
        "  #"
    },
    {
        "###",
        "#  ",
        "###",
        "  #",
        "###",
    },
    {
        "###",
        "#  ",
        "###",
        "# #",
        "###",
    },
    {
        "###",
        "  #",
        "  #",
        "  #",
        "  #"
    },
    {
        "###",
        "# #",
        "###",
        "# #",
        "###",
    },
    {
        "###",
        "# #",
        "###",
        "  #",
        "###",
    }
};

string type[2][5] = {
    {
        "### # #",
        "# # ###",
        "### # #",
        "# # # #",
        "# # # #",
    },

    {
        "### # #",
        "# # ###",
        "### # #",
        "#   # #",
        "#   # #",
    }
};

    int h,m; cin >> h >> m;
    bool after = false;

    if(h >= 12){
        h %= 12;
        after = true;
    }

    int n1 = h/10,n2 = h%10;
    int n3 = m/10,n4 = m%10;

    for(int i=0;i<5;i++){
        if(i == 1 || i == 3) cout << clock[n1][i] << ' ' << clock[n2][i] << " : " << clock[n3][i] << ' ' << clock[n4][i] << "   " << type[after][i] << '\n';
        else cout << clock[n1][i] << ' ' << clock[n2][i] << "   " << clock[n3][i] << ' ' << clock[n4][i] << "   " << type[after][i] << '\n';
    }
}