Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: kkxkkx001
Problemset: ลูกเต๋า
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-08 10:07:27
#include <iostream>
#include <string>
using namespace std;
int main (){
string a[7][3]={{"|","|","|"},{" "," * "," "},{" ","* *"," "},{" * "," * "," * "},{"* *"," ","* *"},{"* *"," * ","* *"},{"* *","* *","* *"}};
string b;
cin >> b;
int x,y,z;
x=b[0]-'0';
y=b[1]-'0';
z=b[2]-'0';
if (x>6||x<1||y>6||y<1||z>6||z<1){
cout << "ERROR";
}
else{
cout << a[x][0] << "|";
cout << a[y][0] << "|";
cout << a[z][0] << endl;
cout << a[x][1] << "|";
cout << a[y][1] << "|";
cout << a[z][1] << endl;
cout << a[x][2] << "|";
cout << a[y][2] << "|";
cout << a[z][2] ;
}
}