Greedy
Can anybody provide solution to this?
Link
Codeforces Round 953 Div 2 Solution Discussion (with Jan)