For the problem 1641D, I made a greedy solution. And in fact, it has passed the SYSTEM TEST!
However, I can't prove its correctness, so the threshold was estimated.
Can this code be hacked?
How can you hack it?
And how can the threshold be exactly chosen?