home archives github knives links
tags oj 洛谷 dfs
categories
only title title and content
P1219

分析

Debug

  1. 为了防止索引为负,左上到右下方向采用行-列+n的映射方式

  2. 注意N的取值