commonsense's blog

By commonsense, history, 17 months ago, In English

Hey, I am new to Code forces, I am submitting the solution for this question, but I am getting this -> Test: #39, time: 62 ms., memory: 1380 KB, exit code: 1, checker exit code: 0, verdict: RUNTIME_ERROR error message, this is the link to my submission.

Initially I thought it is due to problem constraints, like memory, but max is 256 MB allowed, so no! Also, is there a way to see submission logs?

Thanks!

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
17 months ago, # |
  Vote: I like it +8 Vote: I do not like it

Every exception thrown during the runtime will be counted as a runtime error, so it doesn't have to have anything to do with constraints.

For this example, It's because Python has a recursion limit of 1000 by default. You can increase it by module sys. Here goes my accepted solution: 214460670

  • »
    »
    17 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Obviously!! Thanks a lot!! I have 2 followup questions,

    1. how did you figure it out?

    2. Is there a way to see the logs of submissions?

    • »
      »
      »
      17 months ago, # ^ |
      Rev. 2   Vote: I like it +5 Vote: I do not like it
      1. It's a habit to check the recursion limit if it needs extending when using Python to solve CP problems for me.
      2. For Python, no and it's not supposed to.