#P9132. Path

Path

Source: Super League of Chinese College Students Algorithm Design 2022, Contest 1 by HDU.