#P1995. MaxXor
MaxXor
给一个长度为 n 的数列 {an} ,找出 max {ai ^ aj}。
Input
多组测试数据。
第 1 行 1 个数 n。(1<=n<=10^5)
接下来的 1 行有 n 个数 ai。(0<=ai<=10^12)
第 1 行 1 个数 n。(1<=n<=10^5)
接下来的 1 行有 n 个数 ai。(0<=ai<=10^12)
Output
1 行有 1 个数,max {ai ^ aj}。
Sample Input
3
0 1 2
Sample Output
3