This problem is in Contest(s) below:
Contest 1434:高级语言程序设计练习【汤文兵教学班(计算机24-1/2/3)】