I implemented this code in contest time. 111405426 Problem link: Planar Reflections But during contest time my code didn't run on codeblocks. But after the contest, I submitted the code and it got AC!!! Does it have any valid explanation? Thanks in advance.
Same happened with me in sublime .It was not able to produce output on the testcase 500 250. I checked in custom invocation of cf and there it ran perfectly.
Looks like you are taking a lot of memory dedicated to recursion in codeblocks, debugger shows error at one of the function execution and at that time your code uses exactly 32 Mb, so i think this is one of codeblocks' (or maybe MinGW's) limits.
Thanks<3 I had no idea about it.
same with me.I wasted nearly 45 minutes trying to run the last test case on VS code.At last I submitted it out of frustation and got AC. LOL
i saw ac in 1st test case on vs code but cound't submit as 2nd case was not working and it was about end of the contest.
Increase your stack size.
which leads to MLE in codeblocks. Got it now<3 thanks.
Same here. Wasted a lot of time debugging.