传统题 3000ms 256MiB

GameX

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Problem

Once upon aa time, there were two saints named St. Alice and St. Bob.

Being saints were quite boring, so they decided to play a game. The game was about the MEXMEX operation, and was therefore named GameX.

To help you, a mere mortal, to understand the game, we first present the definition of MEX.MEX. Given a set SS of integers, define MEX(S)MEX(S) as the smallest natural number which is not in S.S. In other words, MEX(S)=minMEX(S)=min {xNxS x∈N∣x∉S}..

The game went as follows.

Before the game started, S=a1,a2,,an,S={a1,a2,⋯,an}, which contained the Secret of Life, the Universe and Everything.

The two saints moved alternately, with St. Alice being the first. During one's move, he/she could choose an arbitrary integer x,x, and insert xx into S . So SS is updated to Sx.S∪{x}.

After kk rounds, each player made kk updates, and now it's time to decide the winner. St. Alice wins if MEX(S)MEX(S) is even, and Bob wins otherwise.

Saints are very smart, so both of them made optimal moves. Can a mortal like you decide the winner?

Input

The first line contains a positive integer T(1T104),T(1≤T≤10^4), denoting the number of testcases.

For each testcase:

  • The first line contains two integers n,k(1n,k2×105),n,k(1≤n,k≤2×10^5), denoting the size of SS before the game started and the number of rounds.
  • The next line contains ndistinct natural numbers a1,a2,,an(0ai106),a1,a2,⋯,an (0≤ai≤10^6), denoting S.S.

It is guaranteed that n,k2×105.∑n,∑k≤2×10^5.

Output

For each testcase, output one line consisting of the name of the winner. If St. Alice won output Alice, otherwise output Bob.

Example : in

5
14 5
7 13 1 6 14 2 16 17 18 19 34 36 20 23
13 5
8 10 3 13 14 15 16 17 18 19 20 36 38
14 5
14 20 12 6 0 16 8 11 9 17 13 3 5 19
14 5
15 7 13 3 1 17 16 14 0 12 4 10 22 53
14 5
7 3 4 0 14 15 16 17 18 19 20 21 22 23

Example : out

Bob
Bob
Alice
Bob
Alice

语法基础(数组、字符串及数据批量存储)+ 压力

未参加
状态
已结束
规则
ACM/ICPC
题目
6
开始于
2024-10-11 19:00
结束于
2024-10-12 0:00
持续时间
5 小时
主持人
参赛人数
7