CF 2089B2 - Canteen (Hard Version)

Rating: 2300
Tags: binary search, data structures, dp, flows, greedy, two pointers
Solve time: 2m 35s
Verified: no

Solution

Working