← Back to Library

CroatianCompetitions2011 problem

Difficulty 3

Problem

Let MM and NN be positive integers. Consider an N×NN \times N square array consisting of N2N^2 lamps that can be in two states - on or off. At the beginning all lamps are turned off. A move consists of choosing a row or a column of the array and changing the state of MM consecutive lamps in the chosen row or column, i.e. turning on the lamps that are turned off and vice versa. Determine the necessary and sufficient condition for which it can be achieved that after a finite number of moves all lamps are turned on. (Tonći Kokan)


Your Work

Similar problems