Simulare IOIT 10H 0 | John Mex

This was the problem page during the contest. Access the current page here.