This problem is in Contest(s) below:
Contest 1379:郑州轻工业大学第十一届ACM程序设计大赛校内预选赛
Contest 1275:2017~2018第二学期《ACM竞赛典型算法设计》期末考试