logo AlgoBeat OnlineJudge
登录 注册

#215771. [JAG 2023 Summer Camp #2] Knight Game

内存限制:1024 MiB 时间限制:2000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

The rule of this game is given as follows.

  • There is a knight and a chessboard with rows and columns. The square at the -th row from the top and the -th column from the left is called square . Initially, the knight is placed on square .
  • Alice and Bob alternately take the following action, starting with Alice.
  • Move the knight onto one of the unvisited squares according to the knight's movement.
  • Knights can move from to if and only if is .
  • The player who cannot move the knight is the loser.

When both players have done their best, determine whether Alice or Bob will win. Answer for test cases.

The unvisited square is defined as follows.

  • A square on the board that the knight has never visited since the beginning of the game.

输入格式

represents the -th test case.

Each test case is given in the following format.

The input satisfies the following constraints.

  • All inputs consist of integers.

输出格式

Output lines. On the line , answer the winner of the -th test case, Alice or Bob.

样例

样例输入 1

2
4 4 1 1
9 17 7 3

样例输出 1

Alice
Bob