Author: | A. Klenin, T. Chistyakov | Time limit: | 2 sec | |
Input file: | input.txt | Memory limit: | 256 Mb | |
Output file: | output.txt |
Square raster image is represented by an array of N × N pixels. A texture tile is a square image in which the first row is equal to the last one, and the first column is equal to the last one. This property is valuable when covering the surface of graphics object with repeating copies of texture, because it allows "seamless" transitions between tiles.
Your program must, given an image, find its largest subimage which is a texture tile.
No. | Input file (input.txt ) |
Output file (output.txt ) |
---|---|---|
1 |
|
|
2 |
|
|