cloud_007's blog

By cloud_007, history, 4 years ago, In English

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.

  • Vote: I like it
  • +11
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
  Vote: I like it +7 Vote: I do not like it

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.

»
4 years ago, # |
Rev. 2   Vote: I like it +4 Vote: I do not like it

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.

»
4 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like 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

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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.

»
4 years ago, # |
  Vote: I like it +9 Vote: I do not like it

Increase your stack size.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    which leads to MLE in codeblocks. Got it now<3 thanks.

»
4 years ago, # |
  Vote: I like it +7 Vote: I do not like it

Same here. Wasted a lot of time debugging.