cf/mirror

Special Grid

CF
435D2000· candidate master4s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3 5
10000
10010
00001
Output
20
Sample 2of 3
Input
2 2
00
00
Output
4
Sample 3of 3
Input
2 2
11
11
Output
0
435D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)