cf/mirror

Grid Counting

CF
2150B1700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
5
2 2 1 0 0
2
2 0
2
1 1
4
3 1 0 0
4
0 0 0 0
Output
1
1
0
2
0
2150B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)