cf/mirror

Connecting Vertices

CF
888F2500· grandmaster4s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3
0 0 1
0 0 1
1 1 0
Output
1
Sample 2of 3
Input
4
0 1 1 1
1 0 1 1
1 1 0 1
1 1 1 0
Output
12
Sample 3of 3
Input
3
0 0 0
0 0 1
0 1 0
Output
0
888F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…