A square pattern of size () black and white square tiles is transformed into another square pattern. Write a program that will recognize the minimum transformation that has been applied to the original pattern given the following list of possible transformations:
In the case that more than one transform could have been used, choose the one with the minimum number above.
@ or ); this is the square before transformation.A single line containing the number from through described above that categorizes the transformation required to change from the "before" representation to the "after" representation.
3 @-@ --- @@- @-@ @-- --@
1
USACO Training Section 1.2.
-@ or -); this is the square after transformation.