1771: 二阶矩阵-CCF-GESP2025年3月四级C++

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:1

Description

Input

Output

一行,一个整数,表示A中好的子矩阵的数量

Sample Input Copy

3 5
1 2 1 0 2
2 4 2 1 1
0 3 3 0 3

Sample Output Copy

2

HINT