Original question:
Description
Akihisa and Hideyoshi were lovers. they were sentenced to death by the fff inquisition. ryou, the leader of the fff inquisition, promised that the winner of rock-paper-scissors wocould be immune from the punishment. being lovers, akihisa and Hideyoshi decided to die together with their fists clenched, which indicated rocks in the game. however, at the last moment, akihisa chose paper and Hideyoshi chose scissors. as a result, akihisa was punished by the fff inquisition and Hideyoshi into ved alone.
When a boy named B And a girl named G Are being punished by the fff inquisition, they will play rock-paper-scissors and the winner will keep ve. if there is a tie, then neither of they will keep ve. at first, they promise to choose the same gesture X. But actually, the boy wants to win and the girl wants to lose. of course, neither of them knows that the other one may change his/her gesture. at last, who will keep ve?
Input
There are multiple test cases. The first line of input is an integer T ≈ 1000 indicating the number of test cases.
Each test case contains three strings -- B G X. All strings consist of letters and their lengths never exceed 20. The gesture X Is always one "Rock"
, "Paper"
And "Scissors"
.
Output
If there is a tie, output "Nobody will keep ve"
. Otherwise, output "Y Will keep ve"
Where Y Is the name of the winner.
Sample Input
1 akihisa Hideyoshi rock
Sample output
Hideyoshi will keep ve
Analysis:
I have seen such a story before --
In the same situation, the boy did not want the girl to die. First, both men had a rock, and finally the boy had scissors, the girl went out of the cloth .......... This articleArticleThe opposite is true ??????????
Enumeration, found that all girls victory.
Source code:
# Include <stdio. h> int main () {char a [300], B [300], C [200]; int N; scanf ("% d", & N ); while (n --) {scanf ("% S % s", a, B, c); printf ("% s will keep ve \ n", B );} return 0 ;}