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