查找排序
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Title Description
Given an array of length , you need to sort it in positive order, search for  after sorting, and output the index of . If this number does not exist, output -1.
Enter description
Enter a total of 2 lines. On the first line, there are two integers , with meanings as indicated in the question. On the second line, there are integers , with their meanings as indicated in the question.
Output description
One line, one integer, representing the index of .
Example
Sample Group # 1
Input Example
5 4
5 4 3 2 1 
Output Example
4
Sample Group # 2
Input Example
5 14
14 17 15 16 13 
Output Example
2
【12月月赛】New Year
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 3
- Start at
- 2024-12-7 14:45
- End at
- 2024-12-8 10:45
- Duration
- 20 hour(s)
- Host
- Partic.
- 10
 
      