#P9110. Shortest Path in GCD Graph

Shortest Path in GCD Graph

Source: Super League of Chinese College Students Algorithm Design 2022, Contest 9 by NJU.