deepak_prakash's blog

By deepak_prakash, history, 8 years ago, In English

I recently tried to solve Div 3 D problem and keep on getting Runtime error on 5th case. Not able to figure out the reason behind it.

https://mirror.codeforces.com/contest/999/submission/39512943 (link for the submission)

https://mirror.codeforces.com/contest/999/problem/D (link for the problem)

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

»
8 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Diagnostics actually shows the reason.
Error: attempt to subscript container with out-of-bounds index 0, but container only holds 0 elements.