Блог пользователя cloud_007

Автор cloud_007, история, 5 лет назад, По-английски

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.

  • Проголосовать: нравится
  • +11
  • Проголосовать: не нравится

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

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.

»
5 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +4 Проголосовать: не нравится

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.

»
5 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

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

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +9 Проголосовать: не нравится

Increase your stack size.

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

Same here. Wasted a lot of time debugging.