Subarray with maximum XOR.
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 256 megabytes
Given an array of integers. Find the subarray with maximum XOR.
Input
The first line contains the size of array . Second line contains integers .
Output
Print such and for which the value is maximum among all possible subarrays . Then in the same line print the value of maximum XOR.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 42%