Baseball
Time limit1sMemory limit256 MB
Sum both teams runs over nine innings for each test case and print the higher scorer or Draw.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Kyeonggeun was researching the history of Yonsei University for a class assignment when he found, in a corner of the library, the play by play records of past baseball games between Yonsei University and Korea University. The records only list the runs each team scored in each inning, so even with the papers in hand he could not tell at a glance who won.
Going through that pile of records by hand bored him, so he asked you, his programmer friend, for help.
Read the records and tell Kyeonggeun which team won.
Input
The first line contains a natural number , the number of test cases. test cases follow.
Each test case consists of 9 lines. Each line contains the runs scored by Yonsei and the runs scored by Korea in that inning, separated by a space. Both numbers are between 0 and 9, inclusive.
Output
For each test case, print one line. Print "Yonsei" if Yonsei scored more runs over the 9 innings, "Korea" if Korea scored more, and "Draw" if the two totals are equal.