Problem Statement
Alice and Bob will play a game.
Initially, Alice and Bob each have $N$ cards, with the $i$-th card of Alice having the integer $A_i$ written on it, and the $i$-th card of Bob having the integer $B_i$ written on it.
The game proceeds as follows:
- Prepare a blackboard with nothing written on it.
- Alice eats one of her cards and writes the integer from the eaten card on the blackboard.
- Next, Bob eats one of his cards and writes the integer from the eaten card on the blackboard.
- Finally, Alice eats one more of her cards and writes the integer from the eaten card on the blackboard.
If it is possible to form a (non-degenerate) triangle with the side lengths of the three integers written on the blackboard, Alice wins; otherwise, Bob wins.
Determine who wins when both players act optimally.
Solve each of the $T$ given test cases.
Constraints
$1 \leq T \leq 10^5$$2 \leq N \leq 2 \times 10^5$$1 \leq A_i, B_i \leq 10^9$- All input values are integers.
- The sum of
$N$over all test cases in a single input is at most$2 \times 10^5$.
Input
The input is given from Standard Input in the following format:
T
\mathrm{case}_1
\vdots
\mathrm{case}_T
Each case is given in the following format:
N
A_1 \ldots A_N
B_1 \ldots B_N
Output
Print $T$ lines. The $i$-th line $(1 \leq i \leq T)$ should contain Alice if Alice wins for the $i$-th test case, and Bob if Bob wins.
样例
3
3
1 2 3
4 5 6
4
6 1 5 10
2 2 4 5
10
3 1 4 1 5 9 2 6 5 3
2 7 1 8 2 8 1 8 2 8
Bob
Alice
Alice
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。