Simulare OJI X - 4 | kth

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