By the Assignment
2135C2000· candidate master4s512 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
54 4 4-1 -1 -1 -11 22 31 34 35 6 72 2 -1 2 21 21 31 42 53 54 57 8 9-1 -1 -1 -1 0 -1 01 22 33 41 41 55 67 67 55 8 10000000001 2 3 4 -11 23 23 55 12 44 32 51 45 4 1000000000-1 2 -1 3 -11 21 32 42 5
Output
4190747068572
58%
2135C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…