#Lutece1862. Delta
Delta
Migrated from Lutece 1862 Delta
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
The math teacher Fish Nineone assigned Delta homework. Delta is given a set of integers. The requirement is find the minimum number of intergers inserting to the set that for every two integers and in set, ( bitwise exclusive OR ) is also in the set.
Delta is poor in math, so that she asks you to solve this problem to get one Accepted
in the 16th UESTC programming contest.
Input
The first line is an integer , which indicates the number of testcases.
For each testcase:
The first line of the input file contains the integer ( ).
In the second line, numbers follow ( ).
You can assume that .
Output
For each testcase, your program should output the minimum number of intergers inserting in one line.
Samples
1
3
2 4 6
1
1
5
2 4 5 7 11
11
Note
In the second example, all numbers from 0 to 15 should in the set.
number is in the set as follow:
,
,
...
Resources
The 16th UESTC Programming Contest Preliminary