This problem is in Contest(s) below:
Contest 5238:AK郦老师 Python入门组 第9课 家庭作业