Medium Demon Problem (hard version)
2044G21900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
522 152 3 4 5 152 1 4 2 354 1 1 5 4104 3 9 1 6 7 9 10 10 3
Output
22555
58%
2044G2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…