#Milk

P3074 [USACO13FEB]牛奶调度Milk Scheduling

FarmerJohn'sNcows(1<=N<=10,000)areconvenientlynumbered1..N.EachcowitakesT(i)unitsoftimetomilk.Unfortunately,somecowsmustbemilkedbeforeothers,owingtothelay...