Submission
Status:
----xxx---
Subtask/Task Score:
0/100
Score: 0
User: boygunner
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-03 17:00:53
#include<bits/stdc++.h>
using namespace std;
int main(){
string dice[6][3];
int num,i;
dice[0][0]=" ";
dice[0][1]=" * ";
dice[0][2]=" ";
dice[1][0]=" * ";
dice[1][1]=" ";
dice[1][2]=" * ";
dice[2][0]="* ";
dice[2][1]=" * ";
dice[2][2]=" *";
dice[3][0]="* *";
dice[3][1]=" ";
dice[3][2]="* *";
dice[4][0]="* *";
dice[4][1]=" * ";
dice[4][2]="* *";
dice[5][0]="* *";
dice[5][1]="* *";
dice[5][2]="* *";
cin>>num;
for(int r=0;r<=2;r++){
i=num;
cout<<dice[i/100-1][r];
i=i%100;
cout<<dice[i/10-1][r];
i=i%10;
cout<<dice[i-1][r]<<endl;
}
}