SP13833 SBW - Super Borboletas World
Description
```
Super Borboleta World
The input/output were broken, I've fixed it and rejudged all submissions.
Raphaell is a well-known programmer who created the biggest game development company in the world, BGM (Boboleta's GameMaker). As recently one of its game – S.B.W (Super Borboleta's World) - has became very popular, Raphaell decided to make an online version of S.B.W's game. In order to do this he'll expose the source code and the mechanism of that game so anyone is able to improve it.
At first the game is made of three main operations in which the user is able to call as much as necessary. As the game is composed by K arrays of lists where each list has at most N integers on it, the three operations can be described in the following way:
- Operation : Insert the integer to the end of the -th list.
- Operation : Clean every list whose index lie on the range between and (inclusive).
- Operation : In each list between and calculate all the possible consecutive XOR sum's, where XOR stands for the operation Exclusive OR, and return the maximum value of all possible XOR sum's.
Raphaell has access to the original pseudocode which is given bellow:
m
Input Format
N/A
Output Format
N/A