#P9111. Simple Math 4

Simple Math 4

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