cf/mirror

Xor-Grid Problem

CF
1993E2700· international gm5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
1 2
1 3
2 3
0 1 0
5 4 4
2 3
0 2 4
4 5 1
3 3
1 2 3
4 5 6
7 8 9
Output
1
3
13
24
1993E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)