Twice bigger
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given a sorted array of integers. For each index , find the number of elements in the array that lie between and inclusive.
Input
The first line contains the size of array . The second line contains integers, each ranging from to , in sorted order.
Output
Print integers. For each index of the array, print the number of elements lying between and inclusive.
Examples
Input #1
Answer #1
Submissions 557
Acceptance rate 47%