Can we solve this problem without binary search?
here is the link to the problemPROBLEM According to the editorial, this problem is solved using binary search +dp, but can we solve it with 2-D dp? Thx in advance.
Codeforces Round 946 Solution Discussion