Submit solution
Points:
5 (partial)
Time limit:
1.0s
PyPy 3
2.0s
Memory limit:
64M
Author:
Problem type
Given non-negative integers and queries, for each query , find the number of integers that compare strictly less than .
Constraints
Subtask 1 [20%]
Subtask 2 [80%]
No additional constraints.
Input Specification
The first line will contain two integers, and .
The second line will contain space-separated integers .
The next lines will each contain one integer .
Output Specification
Output integers, each on a separate line, denoting the number of integers less than .
Sample Input
5 3
12 52 69 12 34
14
100
52
Sample Output
2
5
3
Comments