This problem is in Contest(s) below:
Contest 1158:GESP二级考试编程第一题汇总