题目描述
Give
nnon‑negative integers, please find the least non‑negative integer that doesn’t occur in the
nnumbers.
输入
The first line is an integer
T, representing the number of test cases.
For each test case:
The first line of each test case is an integer
n.
The second line of each test case are
nnon‑negative integers
a
i
.
(
T
≤ 10,
n
≤ 2 × 10
5
, 0 ≤
a
i
< 2
31
)
输出
for each test case, output a line with the answer