This problem is in Contest(s) below:
Contest 1139:软件1504-05班期中考试
Contest 1335:通工1607-09C语言作业(3)
Contest 1336:通工1610-11 C语言作业(3)