Simulation - ONI 2017 VII | submat

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