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

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

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://codeforces.com/contest/999/submission/39512943 (link for the submission)

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

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

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

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