NC222441. [USACOFeb2021S]JustGreenEnough
描述
输入描述
The first line of input contains N. The next N lines each contain N integers and collectively describe the G(i,j) values for the N×N pasture.
输出描述
Please print the number of distinct photos Farmer John can take -- that is, the number of rectangular sub-grids for which the minimum level of green-ness is exactly 100.
Note that the large size of integers involved in this problem may require the use of 64-bit integer data types (e.g., a "long long" in C/C++).
示例1
输入:
3 57 120 87 200 100 150 2 141 135
输出:
8
说明:
Problem credits: Brian Dean