This problem is in Contest(s) below:
Contest 1172:2022秋周五晚c++第四期