#P9155. Shallow Moon

Shallow Moon

Source: Super League of Chinese College Students Algorithm Design 2022, Contest 3 by Claris.