#C7010. Game Winner Prediction
Game Winner Prediction
Game Winner Prediction
Alice and Bob are playing a card game. You are given an integer (n) representing the number of cards and a list of (n) integers representing the card values. The winner is determined by the following rules:
- If there is only one card ((n = 1)), then Alice wins.
- If (n > 1):
- If (n) is odd (i.e. (n \mod 2 = 1)), then Bob wins.
- If (n) is even (i.e. (n \mod 2 = 0)), then Alice wins.
Although the card values are provided, they do not affect the outcome beyond determining the number of cards. Your task is to implement a solution that reads input from standard input and prints the correct winner to standard output.
inputFormat
The first line contains an integer (n) that denotes the number of cards. The second line contains (n) space-separated integers representing the values of the cards.
outputFormat
Output a single line, which is either "Alice" or "Bob" depending on who wins the game according to the rules.## sample
1
10
Alice