Please read the new rule regarding the restriction on the use of AI tools. ×

da_201612051's blog

By da_201612051, history, 8 years ago, In English

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.

  • Vote: I like it
  • -3
  • Vote: I do not like it

| Write comment?
»
8 years ago, # |
  Vote: I like it +3 Vote: I do not like it

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.