http://www.spoj.com/problems/HORRIBLE/ Hi everybody, I want to solve this problem with segment tree lazy propagation. I code it with segment tree lazy propagation but it gives me a wrong answer.I check it but I am unable to find any bug. Please anyone can help me to check my code and give me any solution for it.
code link: http://codepad.org/0LePV2tI