2690: 1602 The XOR Largest Pair

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

在给定的N个整数A1,A2……AN中选出两个进行xor运算,得到的结果最大是多少?

Input

第一行一个整数N,第二行N个整数A1~AN。

Output

一个整数表示答案。

Sample Input Copy

3
1 2 3

Sample Output Copy

3

HINT

数据范围与约定

  • 对于100%的数据: N<=10^5, 0<=Ai<2^31。