This problem is in Contest(s) below:
Contest 1305:数组(0)
Contest 1334:大数据-上机五
Contest 1302:输入输出
Contest 1306:数组