cf/mirror

Field Division (easy version)

CF
1980F11900· candidate master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
2 2 3
1 1
1 2
2 2
5 5 4
1 2
2 2
3 4
4 3
2 5 9
1 2
1 5
1 1
2 2
2 4
2 5
1 4
2 3
1 3
6 4 4
6 2
1 3
1 4
1 2
3 4 5
2 1
3 2
1 4
1 3
2 4
Output
1
1 0 1
11
0 1 0 1
1
0 0 1 1 0 0 0 0 0
6
1 0 0 0
1
1 1 0 0 0
1980F1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)