This problem is in Contest(s) below:
Contest 1187:2022秋周六晚c++6期
Contest 1190:2022秋周日早c++6期
Contest 1214:2023春周六晚c++六期
Contest 1222:2023春周日下c++六期