Each case contains 4 integers in a line, separated by space.
Proceed to the end of file.
1 2 5 6 2 3 4 2
_ _ _ | _||_ |_ ||_ _||_| _ _ _ _| _||_| _| |_ _| ||_
The digits showed by the digital clock are as follows: _ _ _ _ _ _ _ _ | _| _||_||_ |_ ||_||_|| |||_ _| | _||_| ||_| _||_|
代码范例:
int main() { int a,b,c,d; string s[10]= {" _ "," "," _ "," _ "," "," _ "," _ "," _ "," _ "," _ "}; string t[10]= {"| |"," |"," _|"," _|","|_|","|_ ","|_ "," |","|_|","|_|"}; string w[10]= {"|_|"," |","|_ "," _|"," |"," _|","|_|"," |","|_|"," _|"}; while(cin>>a>>b>>c>>d) { cout<<s[a]<<s[b]<<s[c]<<s[d]<<endl; cout<<t[a]<<t[b]<<t[c]<<t[d]<<endl; cout<<w[a]<<w[b]<<w[c]<<w[d]<<endl; } return 0; }