Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: bananakung
Problemset: ลูกเต๋า (2566)
Language: cpp
Time: 0.002 second
Submitted On: 2025-09-15 20:07:44
#include<iostream>
using namespace std;
int main()
{
string one[3]={" "," * "," "},two[3]={" * "," "," * "},three[3]={"* "," * "," *"},four[3]={"* *"," ","* *"},
five[3]={"* *"," * ","* *"},six[3]={"* *","* *","* *"};
string str;
int ct=0;
cin>>str;
for(int i=0;i<str.length();i++)
{
for(int j=0;j<str.length();j++)
{
if(str[j]-48==1)cout<<one[i]<<" ";
else if(str[j]-48==2)cout<<two[i]<<" ";
else if(str[j]-48==3)cout<<three[i]<<" ";
else if(str[j]-48==4)cout<<four[i]<<" ";
else if(str[j]-48==5)cout<<five[i]<<" ";
else if(str[j]-48==6)cout<<six[i]<<" ";
else if(str[j]-48>6&&i==2)cout<<"___ ";
else cout<<" ";
}
cout<<endl;
}
}