This problem is in Contest(s) below:
Contest 1001:高精度计算
Contest 1279:2023秋季C++6(平阳)