题号:NC223571
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
Alice and Bob like playing games. There are two piles of stones with numbers

and

. Alice and Bob take turns to operate, each operation can take away
)
stones from one pile and take away
)
stones from another pile. Alice plays first. The person who cannot perform the operation loses the game.
Please determine who will win the game if both Alice and Bob play the game optimally.
输入描述:
The first line contains an integer
denotes the total number of test cases.
Each test case contains two integers
in a line, indicating the number of two piles of stones.
输出描述:
For each test case, print "Alice" if Alice will win the game, otherwise print "Bob".