Need Help in problem "Triangle Query"

Revision en2, by Lelouch.Lamperouge, 2020-05-08 22:16:03

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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Lelouch.Lamperouge 2020-05-08 22:16:03 4
en1 English Lelouch.Lamperouge 2020-05-08 22:15:17 655 Initial revision (published)