http://poj.org/problem?id=1753
Question meaning: 4*4 square matrix, every time you flip the surrounding chess pieces, ask the minimum number of moves for all the same color.
It seems that cf has a question like this, usually the first line is enumerated, and then the first line can only be affected from the second line if it is not turned, so that the first three lines can be single Click to adjust, if the last line is not all the same color, just false.
#include#include#include#include#include#include