cf/mirror

Lucky Arrays

CF
256E2400· grandmaster4s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3 10
1 1 0
1 0 0
1 1 1
1 1
1 3
2 2
3 0
2 1
3 0
3 1
2 0
3 1
1 0
Output
3
6
1
1
2
2
1
3
3
6
256E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)