This problem is in Contest(s) below:
Contest 1953:acm集训队第三周测试补题
Contest 1952:acm集训队第三周测试