#P4979. Maximize Mex

Maximize Mex

Description


Input Format

Output Format

3
6 3
0 3 2 1 5 2
6 2
1 3 4 1 0 2
4 5
2 5 10 3
4
6
0

Hint

Source

CF Div2 B 枚举 贪心