Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Krovmoroz

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-11-04 19:11:40

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

string n, p[7] = 
{"      ___",
 "    *    ",
 " *     * ",
 "*   *   *",
 "* *   * *",
 "* * * * *",
 "* ** ** *"};

int main() {
  ios::sync_with_stdio(false); cin.tie(nullptr);
  cin >> n;
  
  for (int i=0; i<9; i++) {
    int d = (n[i%3] - '0');
    if (d>6) cout << ((i>5)?"___ ":"    ");
    else cout << p[d].substr(i/3*3,3) << " ";
    if (i%3==2) cout << "\n";
  }
}