0%

CF-1024-C. Mex in the Grid(蛇形构造转圈矩阵)

思路讲解

从外往里转会好很多。

image

AC代码

https://codeforces.com/contest/2102/submission/319351416

心路历程(WA,TLE,MLE……)

从里往外转比较烦。

WA