This problem is in Contest(s) below:
Contest 1680:ACM集训队软件开发部(工程楼333)20级招新选拔
Contest 1501:"华为杯"河南工程学院第三届ACM大学生程序设计竞赛