This problem is in Contest(s) below:
Contest 1341:练习
Contest 1445:2025秋c++拓展课检测