Hello Codeforces,
A few days ago, I was sitting and thinking, and invented a data structure with time complexities and (preprocessing and per query, respectively) I was being lazy and surfing the net :P I was searching for some good HTML5 <canvas>
tutorials/example usages and found this.
It is cool, but not so beautiful. So I modified it a bit to make it more beautiful and more "competitive programmerish". :P :D :P