K-th Path
1196F2200· master2.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
6 10 52 5 15 3 96 2 21 3 15 1 86 5 101 6 56 4 63 6 23 4 5
Output
3
Sample 2of 2
Input
7 15 182 6 35 7 46 5 43 6 96 7 71 6 47 1 67 2 14 3 23 2 85 3 62 5 53 7 94 1 82 1 1
Output
9
58%
1196F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…