This problem is in Contest(s) below:
Contest 1787:test
Contest 1941:test0723
Contest 1942:acm集训队第二周测试
Contest 1943:acm集训队第二周测试补题