#C7691. Determine the Winner
Determine the Winner
Determine the Winner
Alice and Bob are engaged in a simple game. They are given an array of N integers. The twist is that the values in the array do not affect the outcome at all; only the count of elements matters. Specifically, if N is odd, then Alice wins, and if N is even, Bob wins.
This problem tests your ability to read input, process simple logic, and produce the correct output based solely on the parity of a number. Remember that the integers in the array are only provided to mimic a more complex scenario, but they are not used in determining the winner.
Example: If the input array has 3 integers, the output should be "Alice" because 3 is odd.
inputFormat
The input is given via standard input and consists of two lines:
- The first line contains a single integer \(N\) which denotes the number of elements in the array.
- The second line contains \(N\) space-separated integers. These integers represent the array elements and are not used for the decision process.
outputFormat
Output a single line to standard output containing either "Alice" or "Bob". The decision is made as follows:
- If \(N\) is odd, print "Alice".
- If \(N\) is even, print "Bob".
3
1 2 3
Alice