Lelouch.Lamperouge's blog

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

Hi, I was trying to solve the problem Traffic Lights from codeforces round 29 I was able to solve the problem but can somebody explain how just changing the language from C++14 to C++17 causes a change in the verdict
Wrong Answer Solution
Accepted Solution

Full text and comments »

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

Full text and comments »