cf/mirror

Paths on a Grid

CF
2247F3s1024 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
1 1
1
2 2
11
11
2 2
10
01
2 2
11
01
4 4
1011
1101
0111
1111
1 32
10010110010001010110011111010011
Output
1
5
15
8
162
301989883
2247F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)