#P3812. 【模板】线性基
【模板】线性基
Description
Given integers (numbers may repeat), choose any subset of them so that their XOR sum is maximized.
Input Format
The first line contains an integer , the number of elements. The next line contains integers.
Output Format
Output a single integer on one line, the answer.
2
1 1
1
4
1 5 9 4
13
Hint
Constraints: , .
Translated by ChatGPT 5
京公网安备 11011102002149号