This problem is in Contest(s) below:
Contest 1216:python for练习