Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

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

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
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится +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.

»
3 года назад, # |
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.

»
3 года назад, # |
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

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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.

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

Increase your stack size.

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

Same here. Wasted a lot of time debugging.