Count Subrectangles
1323B1500· specialist1s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 3 21 0 11 1 1
Output
4
Sample 2of 2
Input
3 5 41 1 11 1 1 1 1
Output
14
58%
1323B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3 3 21 0 11 1 1
4
3 5 41 1 11 1 1 1 1
14