Simulare OJI X(2) | Șir

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