Problem

Source: Czech-Polish-Slovak Match 2016,P2,day 1

Tags: combinatorics



Let $m,n > 2$ be even integers. Consider a board of size $m \times n$ whose every cell is colored either black or white. The Guesser does not see the coloring of the board but may ask the Oracle some questions about it. In particular, she may inquire about two adjacent cells (sharing an edge) and the Oracle discloses whether the two adjacent cells have the same color or not. The Guesser eventually wants to find the parity of the number of adjacent cell-pairs whose colors are different. What is the minimum number of inquiries the Guesser needs to make so that she is guaranteed to find her answer?(Czech Republic)