Shortest GCD Paths
2233F2800· international gm2s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
10 9 8
Output
7
Sample 2of 3
Input
100 16 27
Output
10
Sample 3of 3
Input
100 55 11
Output
5
58%
2233F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…