Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: pupu
Problemset: ลูกเต๋า
Language: cpp
Time: 0.003 second
Submitted On: 2026-10-06 10:03:08
#include <iostream>
#include <vector>
using namespace std;
int main(){ios::sync_with_stdio(0);cin.tie(0);
int n,x,a=0,ten=100,hold;
vector<vector<char>> v = {
{' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','*',' ',' ','*',' ','*',' ','*',' ','*',' ','*',' ','*',' '},
{' ',' ','*',' ',' ','*',' ','*',' ',' ','*',' ',' ',' ',' ',' ',' ',' ','*',' ',' ','*',' ','*',' '},
{' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','*',' ',' ','*',' ','*',' ','*',' ','*',' ','*',' ','*',' '}
};
vector<vector<char>>out(3,vector<char>(11,'|'));
cin>>x;
for(int i=0;i<3;i++){
n= x / ten;
x= x-(n*ten);
if(n>6){
cout<<"ERROR";
return 0;
}
for(int j=0;j<3;j++){
for(int k=0;k<3;k++){
out[j][k+((i)*4)]=v[j][k+((n-1)*4)+1];
}
}
ten = ten/10;
}
for(int i=0;i<3;i++){
for(int j=0;j<11;j++){
cout<<out[i][j];
}
if(a<2){
cout<<"\n";
}
a=a+1;
}
}