CF895B XK Segments
Description
While Vasya finished eating his piece of pizza, the lesson has already started. For being late for the lesson, the teacher suggested Vasya to solve one interesting problem. Vasya has an array $ a $ and integer $ x $ . He should find the number of different ordered pairs of indexes $ (i,j) $ such that $ a_{i}
Input Format
The first line contains 3 integers $ n,x,k $ ( $ 1
Output Format
Print one integer — the answer to the problem.
Explanation/Hint
In first sample there are only three suitable pairs of indexes — $ (1,2),(2,3),(3,4) $ .
In second sample there are four suitable pairs of indexes $ (1,1),(2,2),(3,3),(4,4) $ .
In third sample every pair $ (i,j) $ is suitable, so the answer is $ 5*5=25 $ .