cf/mirror

Who's Opposite?

CF
1560B800· newbie1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1
Input
7
6 2 4
2 3 1
2 4 10
5 3 4
1 3 2
2 5 4
4 3 2
Output
8
-1
-1
-1
4
1
-1
1560B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)