Comments

I have a problem on task E.
Editorial 1
Editorial 2
How to mathematically prove that the algorithms in official editorials always yields a best solution?