Provincial warm-up match-yet another story of rock-paper-scissors

Source: Internet
Author: User

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 ;}

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.