This problem is in Contest(s) below:
Contest 1085:二维数组
Contest 1192:2018小六第五场
Contest 1050:寒假训练2
Contest 1419:训练222