This problem is in Contest(s) below:
Contest 1678:ACM可好玩了(3)
Contest 1530:2020~2021学年第一学期《C语言程序设计》期末考试
Contest 1749:通信物工班内练习赛