Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: fishia

Problemset: ลูกเต๋า

Language: cpp

Time: 0.003 second

Submitted On: 2026-10-13 20:32:20

#include<iostream>
#include<string>
using namespace std;
int main (){
	string a;
	int f1,f2,f3;
	char face[6][3][4] = {
    {{"   "}, {" * "}, {"   "}},
    {{"   "}, {"* *"}, {"   "}},
    {{" * "}, {" * "}, {" * "}},
    {{"* *"}, {"   "}, {"* *"}},
    {{"* *"}, {" * "}, {"* *"}},
    {{"* *"}, {"* *"}, {"* *"}},
};
cin>>a;
f1=a[0]-'0'-1;
f2=a[1]-'0'-1;
f3=a[2]-'0'-1;
if(f1>5||f2>5||f3>5){
	cout<<"ERROR";
	return 0;
}
	for(int i=0;i<3;i++){
		cout<<face[f1][i]<<"|"<<face[f2][i]<<"|"<<face[f3][i]<<"\n";
	}
}