Maximal XOR
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 256 megabytes
Given array of integers . For the given value of find such that is maximum.
Input
First line contains number and number of queries . Second line contains integers . Each of the next lines contains one number .
Output
For each value of print in a separate line such value that is maximum.
Examples
Input #1
Answer #1
Submissions 581
Acceptance rate 21%