Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: vern6767
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.003 second
Submitted On: 2026-09-21 15:50:12
#include <iostream>
#include <string>
using namespace std;
int main() {
string R;
cin >> R;
string dr[7][3] = {
{" ", " ", "___"},
{" ", " * ", " "},
{" * ", " ", " * "},
{"* ", " * ", " *"},
{"* *", " ", "* *"},
{"* *", " * ", "* *"},
{"* *", "* *", "* *"}
};
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
int num = stoi(R.substr(j, 1));
if (num <= 0 || num >= 7) {
num = 0;
}
cout << dr[num][i] << " ";
}
cout << "\n";
}
return 0;
}