Problem C
Flip Five
This is a logic puzzle in which you have a square grid of
3
The problem is to find the minimum number of cell clicks to transform a grid of all white cells into the input grid (which is always possible). You cannot rotate the grid.
![\includegraphics[width=0.6\textwidth ]{flip4}](/problems/flipfive/file/statement/en/img-0001.png)
Input
The first value in the input file is an integer
For each of the
Output
For each problem output a single integer giving the minimum number of clicks necessary to transform a grid of all white cells into the pattern given in the input.
Sample Input 1 | Sample Output 1 |
---|---|
2 *.. **. *.. *** *.. ..* |
1 3 |