This problem is in Contest(s) below:
Contest 1164:2022暑期246晚c++第二期