Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

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

https://codeforces.com/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
  • Проголосовать: не нравится

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

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

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

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

can you spot what i noticed?

hint

`

second hint
third hint

hope this helps