Bear and Two Paths
643B1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
7 112 4 7 3
Output
2 7 1 3 6 5 47 1 5 4 6 2 3
Sample 2of 2
Input
1000 99910 20 30 40
Output
-1
58%
643B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…