Lelouch.Lamperouge's blog

By Lelouch.Lamperouge, history, 5 years ago, In English

Hi, I was trying to solve the problem Triangle Query from codechef April Lunchtime. I tried to keep the track of the points and carry out the updates and queries with the help of segment trees but got a WA. I have already tried out many test cases but my code passes all of them I would be very grateful if somebody can tell me what is the flaw in my code or just provide a test case for which my code fails. Problem Link:https://www.codechef.com/problems/TRIQRY

WA solution: https://www.codechef.com/viewsolution/32879645

variable names are good enough to make the code clear enough to understand what's going on