#C7671. Determine the Game Winner
Determine the Game Winner
Determine the Game Winner
You are given a number of stone pairs. For each pair, if both numbers are equal, then the winner for that pair is Bob
; if they are not equal, the winner is Eliza
.
Your task is to write a program that reads the input from stdin
and for each pair outputs the winner’s name on a separate line to stdout
.
The rules can be expressed in latex as follows:
\( Winner = \begin{cases} Bob, & \text{if } a = b \cr Eliza, & \text{if } a \neq b \end{cases} \)
inputFormat
The input is read from standard input (stdin
) and has the following format:
- The first line contains a single integer \(T\) representing the number of piles.
- Each of the following \(T\) lines contains two space-separated non-negative integers \(a\) and \(b\), which represent the number of stones in each pile.
outputFormat
For each of the \(T\) piles, output the name of the winner (Bob
or Eliza
) on a new line to standard output (stdout
).
1
2 3
Eliza