Submission
Status:
PPPPP--PPP
Subtask/Task Score:
80/100
Score: 80
User: fishia
Problemset: ลูกเต๋า
Language: cpp
Time: 0.003 second
Submitted On: 2026-10-13 20:30:27
#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;
for(int i=0;i<3;i++){
cout<<face[f1][i]<<"|"<<face[f2][i]<<"|"<<face[f3][i]<<"\n";
}
}