This problem is in Contest(s) below:
Contest 1147:2022年春季(刷题)
Contest 1285:2023秋C++新生(3-5)(平阳)
Contest 1410:2025春p2快