#P7339. 『MdOI R4』Kotori
『MdOI R4』Kotori
Background
"Because"? So what?
"Because I am your younger sister, you want me to tell you not to stop you from fooling around?"
"Because I am your younger sister, you want me to watch you go to your death?"
"Because I am your younger sister, you want me to silently watch you possibly get killed?"
"Stop kidding. What is this supposed to be? I thought peace had finally come with great difficulty, and I thought Shido would finally stop getting hurt."
"I—I do not want Shido to die. I do not want to see Shido get hurt again. I cannot stand letting Shido feel pain anymore..."
"Because I—"
"Like Shido—"

Problem Description
The annual International Saimoe League (ISML) has begun. As the former "Moe King", Kotori naturally does not need to participate. However, she wants to help her older brother Shido win the title of "Burning King".
In this ISML, there are contestants, numbered . Shido's number is . The tournament is single-elimination. After each round, among the remaining contestants, the two with the smallest numbers become opponents, the rd and th smallest become opponents, and so on. The winner of a match is decided by fan votes: the side with more votes advances to the next round, and the side with fewer votes is eliminated.
For example, if there are contestants in total, then in the first round contestants and play a match, and contestants and play a match. Then the winners of the two matches play one more match to compete for the overall championship. The overall champion will receive the title of "Burning King".
Each character has a fan club. The number of members in contestant 's fan club is . In each round of voting, all fan club members will and will only vote for their corresponding contestant.
In addition, Kotori has a team of people, who will always follow Kotori's vote. That is, in every match, Kotori can add votes to either of the two contestants in that match. Note that in one round there may be multiple matches, and each match always has exactly two contestants.
Kotori also has a privilege: when the two sides have the same number of votes in a match, as the Moe King she can decide the winner of that match.
Now Kotori wants to know whether she has the ability to help her brother become the champion and obtain the title of "Burning King".
Input Format
This problem contains multiple test cases. The first line contains a positive integer indicating the number of test cases.
Then follow test cases. Each test case has two lines:
- The first line contains two integers .
- The second line contains integers. The -th integer denotes .
Output Format
Output lines, one line for each test case.
For each test case, output Kotori if it can be done; otherwise output Yoshino.
3
3 6
2 0 0 5 0 9 0 9
3 6
2 0 5 0 0 5 0 9
2 6
2 0 0 5
Yoshino
Kotori
Kotori
Hint
[Sample Explanation #1]
For test case , there is no plan that allows Shido to become the Burning King.
For test case , consider the following plan:
Round :
- Contestants and play. Give the votes to contestant , and contestant is eliminated.
- Contestants and play. Give the votes to contestant , and contestant is eliminated.
- Contestants and play. Give the votes to contestant , and contestant is eliminated.
- Contestants and play. Give the votes to contestant , and contestant is eliminated.
Round :
- Contestants and play. Give the votes to contestant , and contestant is eliminated.
- Contestants and play. Give the votes to contestant , and contestant is eliminated.
Round :
- Contestants and play. Give the votes to contestant , and contestant is eliminated.
[Constraints and Conventions]
This problem uses bundled tests.
| Subtask ID | Score | |||
|---|---|---|---|---|
| No special limit | ||||
| No special limit | ||||
| No special limit | ||||
For of the data, , , and .
[Tips and Help]
The input size of this problem is relatively large. Please choose a faster input method.
The "world saimoe tournament" in this problem is different from the real "world saimoe tournament". In this problem, please follow this problem statement.
Translated by ChatGPT 5