This problem is in Contest(s) below:
Contest 1678:ACM可好玩了(3)
Contest 1749:通信物工班内练习赛