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

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

I am not able to understand why I am getting the wrong answer on test case 9. Are there any edge cases I am missing. Ik I can see the editorial but this contest doesn't have one(Don't know why). Here is the link: https://codeforces.net/contest/747/submission/86296933

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

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

Actually there is an editorial. Though it isn't available in the "Contest materials" section, you can find it via google search.

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

here is the changed version of your code which got accepted https://codeforces.net/contest/747/submission/86302666 the thing u are doing wrong is u are updating the value of the task array without checking if there are enough servers available for use. i hope this help