This problem is in Contest(s) below:
Contest 1318:ssk_2 循环&数组