#D11000. The Number of Windows
The Number of Windows
The Number of Windows
For a given array of elements and integers as queries, for each query, print the number of combinations of two integers which satisfies the condition: and .
Constraints
Input
The input is given in the following format.
... ...
Output
For each query, print the number of combinations in a line.
Example
Input
6 5 1 2 3 4 5 6 6 9 12 21 15
Output
9 12 15 21 18
inputFormat
Input
The input is given in the following format.
... ...
outputFormat
Output
For each query, print the number of combinations in a line.
Example
Input
6 5 1 2 3 4 5 6 6 9 12 21 15
Output
9 12 15 21 18
样例
6 5
1 2 3 4 5 6
6 9 12 21 15
9
12
15
21
18
</p>