#P9136. Alice and Bob

Alice and Bob

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