This problem is in Contest(s) below:
Contest 1102:2022寒假基础班练习题
Contest 1144:基础班-二维数组
Contest 1155:2024秋季基础班作业