【思维 && 构造到 0 位置的元素值满足曼哈顿距离的矩阵】Codeforces Round #495 (Div. 2) D. Sonya and Matrix

NoSuchKey