Hello Everyone,
I am trying to solve the problem E from Codeforces Beta Round #91 (Div 1. only). I am facing issues in getting it accepted. It is giving me TLE on test case 62. I am not sure why is this happening, can anyone please help me resolve the same.
I think it might be because of the func I have used in lazy segment tree class. If anyone has any suggestion or update feel free to write it down in the comments.
Here is my submission and this is the lazy segment tree.