#P9112. Sum Plus Product

Sum Plus Product

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