Mist is a very bad bosses, played chess tic-tac-toe like for someone to learn, but he only likes to play chess don't like to see the results, and now he'd like to invite you to help him to design a program to view the results, he will give you details of the game, if he wins, output "receive bad," if he loses, output "and" next time, if a tie, output "happy good
"PS: game for one step alternates, receive down
PS. PS: tic-tac-toe game rule is first to make their own three child together as a line for the winning
Enter
The first line of input n, said the two sides in step away n
The following n lines, each line of input two Numbers, said horizontal ordinate
O
If he wins, output "receive bad," if he loses, output "and" next time, if a tie, output "happy good
"
The sample input
5
2 2
1 1
2 1
1
22, 3,
Sample output
Receive much
CodePudding user response:
Seem to is a two-dimensional arrayEnter no difficulty
The key is to judge if each step to call function, the function is bad to write,
CodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html