Given

integers

and

queries. For each query, you are given a const

and you should determine how many different pairs
_%7B%7D)
are there meeting the condition that the range of the subsequence

is strictly greater than

.
Note: the range of a sequence equals the difference between the maximum and the minimum of the sequence.
输入描述:
The first line contains two integers
, denoting the number of given integers and the number of queries respectively.
The second line contains n integers
, denoting the given integers.
Next m lines each contains one integer
, denoting the queries.
输出描述:
Print
lines each contains one integer, denoting the answers.
示例1
说明
There are three pairs,
, which meet the condition.