link How to solve B, C? For C i know the solution with 2D-segment tree with lazy propagation, but it looks too scary.
link How to solve B, C? For C i know the solution with 2D-segment tree with lazy propagation, but it looks too scary.
What happened to acm.timus? Am I the only one who can't enter the site?