Timus #1401

题目说明:给定一个起点,剩下的用L形的三个方块进行填充。

题目解析:迭代。最大的正方形切成四个小正方形,一步步切下去直到最后剩余2*2的小正方形。在大正方形正中间四个方块,除起点所在象限的方块,即另外三个方块标记上相同数字。

Title Analysis English version: We can using iteration to solve problems. From the start position, starting to binary cut the matrix into four pieces until every sub-matrix is 2*2.  I will mark the start position and the other three positions in the middle which has different quadrants besides the quadrant the start position in.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

浙ICP备2021019730-1    浙公网安备 33010902002953号
Copyright © 2024 PanCake