This problem is in Contest(s) below:
Contest 1017:Python加强班作业10