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

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

Автор HiCode2009, история, 23 месяца назад, По-английски

https://codeforces.net/contest/4/submission/174376175

My code:Check if sumtime is in $$$[minsum,maxsum]$$$,minsum is the sum of all the $$$mintime$$$ and maxsum is the sum of all the $$$maxtime$$$.Then greedy for the solution.

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

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

Not sure if greedy is applicable here, though I solved it with knapsack-like dp. Could you elaborate on your solution?

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

you are so close my guy. I took your code and only changed one thing. This is my submission: https://codeforces.net/contest/4/submission/178599913

can you spot what i noticed?

hint

`

second hint
third hint

hope this helps