CF620F Xors on Segments

Description

You are given an array with $ n $ integers $ a_{i} $ and $ m $ queries. Each query is described by two integers $ (l_{j},r_{j}) $ . Let's define the function ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF620F/f18ed64d02d5b1c443dfe0810af3982715620dfd.png). The function is defined for only $ u

Input Format

The first line contains two integers $ n,m $ ( $ 1

Output Format

For each query print the value $ a_{j} $ on a separate line — the maximal value of the function $ f(a_{x},a_{y}) $ over all $ l_{j}