Gldr gives you two numbers L and R and he wants the sum of the difference between every adjacent element between L and R.
Sum is calculated as follows : ∑R−1i=L(i+1)−(i)
For Example : if L = 1 and R = 3, the sum = (2-1) + (3-2) , so sum = 2 .
Constrains :
1≤T≤100
−109≤L<R≤109 .
Input :
The first line contains one number T the number of test cases .
The second line contains two numbers L and R .
Output :
Print one number the sum of the difference between every adjacent elements between L and R .
For test case 1 , sum = 1 - 0 = 1
For test case 2 , sum= 0 - (-1) =1