Editorial for TLE 2018-19 P6 - The Final Test


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

The first hint is in this page. You should have seen this hint already.

The second hint is in this image.

The third hint is provided by the judge when you try to solve the problem normally.

The fourth hint is in this page.

The fifth (and final) hint is in this page.


Comments

There are no comments at the moment.