This problem is in Contest(s) below:
Contest 1886:少年宫1(输入n以及n个数)