Empty Rectangles
364E3000· legendary gm12s512 MB⌨ stdin/stdout
Examples
Sample 1of 5
Input
3 3 2101000101
Output
8
Sample 2of 5
Input
5 5 10000000000001000000000000
Output
81
Sample 3of 5
Input
5 5 60101010101010101010101010
Output
12
Sample 4of 5
Input
3 3 0001010000
Output
15
Sample 5of 5
Input
4 4 00000010100000000
Output
52
58%
364E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)