#K96302. Winner Determination
Winner Determination
Winner Determination
You are given the scores of two participants for several test cases. For each test case, compare the two scores:
- If the score of Participant 1 is greater than that of Participant 2, then Participant 1 wins.
- If the score of Participant 2 is greater, then Participant 2 wins.
- If the scores are equal, the result is a tie.
Output the result for each test case on a new line. The input will be read from standard input (stdin) and the output should be written to standard output (stdout).
Note: Use the following comparison rule in your solution:
\(\text{If } S1 > S2 \text{ then output } \texttt{Participant 1}, \text{ elif } S1 < S2 \text{ then output } \texttt{Participant 2}, \text{ otherwise output } \texttt{TIE}.\)
inputFormat
The input begins with an integer T
denoting the number of test cases. Following this, there are T
lines, each containing two space-separated integers S1
and S2
, which represent the scores of Participant 1 and Participant 2 respectively.
outputFormat
For each test case, output a single line with one of the following strings: Participant 1
, Participant 2
, or TIE
, according to the result of the comparison.
3
85 70
100 150
200 200
Participant 1
Participant 2
TIE
</p>