Medium Demon Problem (easy version)
2044G11700· expert2s256 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
22545
58%
2044G1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…