Easy Array Counting#12254

Easy Array Counting

1 second
256 megabytes
Very easy

Given three integers n,a,b , count how many increasing arrays of length exist:

Input

The first line contains a single integer (1 \le t \le 10^4) – the number of test cases.

The only line of each test case contains three integers n,a,b (1 \le n \le 10^9 ; 1 \le a \le b \le 10^9) – the length of array and the boundaries of array .

Output

For each test case, output the count of such arrays.

Examples

Example 1

Loading
Loading

Note

In the first test case, the only possible array is [7,7,7,7].

In the second test case, the possible arrays are:

  1. [4,4,4]

  2. [4,5,6]

  3. [4,6,8]

  4. [4,7,10]

In the third test case, the possible arrays are:

  1. [3,3,3,3,3]

  2. [3,4,5,6,7]

Scoring

  1. Subtask ( points): (a=b).

  2. Subtask ( points): (\sum b-a \le 100)

  3. Subtask ( points): (\sum b-a \le 10^5)

  4. Subtask ( points): No additional constraints