#355
Unrated
My Cow Ate My Homework
시간 제한
2s
메모리 제한
1024MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

In your bovine history class, you have been given a rather long homework assignment with NN questions (3N100,0003 \leq N \leq 100,000), each graded with an integer score in the range 0...10,000. As is often customary, your teacher plans to assign a final grade by discarding a question on which you received the lowest score and then averaging the remaining scores together. Unfortunately, your pet cow Bessie has just eaten your answers to the first KK questions! (KK could be as small as 1 or as large as N2N-2).

After copious explanation, your teacher finally believes your story, and agrees to grade the remaining non-eaten part of the assignment the same way as before -- by removing the lowest-scoring question (or one such question, in the event of a tie) and averaging the rest.

Please output all values of KK which would have earned you the maximum possible score according to this grading scheme, in sorted order.

입력

The first line of input contains NN, and the next line contains the scores on the NN homework questions.

출력

Please output, one value per line, all values of KK which would have earned you the maximum possible score.

예제 입력 1

5
3 1 9 2 7

예제 출력 1

2
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Unrated0명 투표
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.