当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
The factory cuts rectangular M × N granite plates into pieces using a special machine that is able to perform cuts in 4 different directions: vertically, horizontally, and diagonally at the angle of 45 degrees to the sides of the plate. Every cut is a straight line that starts and ends on the side of the plate.
7 4 6 6 0 7 1 1 4 1 0 0 4 4 0 0 0 4 4 0 2 7 2 7 0 3 4
8
| 时间上限 | 内存上限 |
| 1000 | 65536 |