Magnets

Place magnets in the diagram. Each magnet has a positive and a negative pole, and adjacent squares cannot contain the same pole. The numbers give the number of plus and minus poles in each row and column. More information.