I am getting TLE in codeforces 620E even by using lazy propogation

Sir,
I am getting TLE in codeforces 620 E problem please help me.
Here is the link to my code
https://pastebin.com/6Uf7q3SG