cf/mirror

Too Many Constraints

CF
1697F2800· international gm2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
4 0 4
2 2 3
3 1 2 3
1 2 2
3 3 2
1 1 1
2 2 3 2
3 2 3 2
5 5 5
3 2 5 7
2 4 5 10
3 4 5 6
3 3 4 7
2 1 5 7
Output
1 2 3 4
1 3
-1
1 2 2 5 5
1697F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…