题库练习 Sereja and Contest
← 上一题 下一题 →

A9003 | Sereja and Contest

时间限制1s
内存限制256MB
通过 / 提交0/0

题目描述

During the last Sereja's Codesecrof round the server crashed many times, so the round was decided to be made unrated for some participants.

Let's assume that $n$ people took part in the contest. Let's assume that the participant who got the first place has rating $a_{1}$ , the second place participant has rating $a_{2}$ , $...$ , the $n$ -th place participant has rating $a_{n}$ . Then changing the rating on the Codesecrof site is calculated by the formula ![](/uploads/acgo/image/823712a3ad1a2351_e57e710b8da8.jpeg).

After the round was over, the Codesecrof management published the participants' results table. They decided that if for a participant $d_{i}<k$ , then the round can be considered unrated for him. But imagine the management's surprise when they found out that the participants' rating table is dynamic. In other words, when some participant is removed from the rating, he is removed from the results' table and the rating is recalculated according to the new table. And of course, all applications for exclusion from the rating are considered in view of the current table.

We know that among all the applications for exclusion from the rating the first application to consider is from the participant with the best rank (the rank with the minimum number), for who $d_{i}<k$ . We also know that the applications for exclusion from rating were submitted by all participants.

Now Sereja wonders, what is the number of participants to be excluded from the contest rating, and the numbers of the participants in the original table in the order of their exclusion from the rating. Pay attention to the analysis of the first test case for a better understanding of the statement.

输入格式

The first line contains two integers $n$ , $k$ $(1<=n<=2·10^{5},-10^{9}<=k<=0)$ . The second line contains $n$ space-separated integers $a_{1},a_{2},...,a_{n}$ $(1<=a_{i}<=10^{9})$ — ratings of the participants in the initial table.

输出格式

Print the numbers of participants in the order in which they were removed from the table. Print the initial numbers of the participants, that is, the numbers that the participants had in the initial table.

输入输出样例

输入 #1
5 0
5 3 4 1 2
输出 #1
2
3
4
输入 #2
10 -10
5 5 1 7 5 1 2 4 9 2
输出 #2
2
4
5
7
8
9
C++ 编辑器
输入
输出