The Fair Nut and the Best Path
1083A1800· expert3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
31 3 31 2 21 3 2
Output
3
Sample 2of 2
Input
56 3 2 5 01 2 102 3 32 4 11 5 1
Output
7
58%
1083A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…