Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

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

Can anyone help me to identify where I am wrong for the problem : http://codeforces.me/contest/747/problem/C

here is my solution which fails on the test case 9. I am unable to identify the mistake.

http://codeforces.me/contest/747/submission/25716217

Thank you.

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

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

You should first check whether it is possible to have k free machines at the time t, and only if it is possible icrease value of servers[i]. Otherwise you are increasing value of servers[i] even though it is impossible and program are ingored.