Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: Newton4566
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-10 19:02:17
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
const string dice[3][7] = {
{" ", " ", " * ", "* ", "* *", "* *", "* *"},
{" ", " * ", " ", " * ", " ", " * ", "* *"},
{"___", " ", " * ", " *", "* *", "* *", "* *"}
};
string n;
cin >> n;
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < n.length(); ++j) {
int page = n[j] - '0';
if (page >= 1 && page <= 6) cout << dice[i][page];
else cout << dice[i][0];
}
cout << '\n';
}
return 0;
}