#P9126. Dragon slayer

Dragon slayer

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