This problem is in Contest(s) below:
Contest 1141:CSP培训班练习题(二)