How to solve this problem?

Revision en2, by HiCode2009, 2022-10-30 18:08:01

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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English HiCode2009 2022-10-30 18:08:01 2 Tiny change: 'sum,maxsum)$,minsum i' -> 'sum,maxsum]$,minsum i'
en1 English HiCode2009 2022-10-30 18:07:42 243 Initial revision (published)