This problem is in Contest(s) below:
Contest 1390:2024平阳(函数)
Contest 1143:2022春季周日下第五期
Contest 1188:2022秋周六晚c++5期
Contest 1338:2024春周日下python
Contest 1183:2022秋周日下c++5期