Easy Array Counting II#12269

Easy Array Counting II

1 second
256 megabytes
Very easy

Given three integers , , , Count how many arrays of length such that l \le a_i \le r and all subarrays of (including itself) are Palindromes.

^{\dagger} An array is called palindrome if and only if we can read it from left to right as from right to left.

Input

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

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

Output

For each test case output single integer — the count of such arrays.

Examples

Example 1

Loading
Loading

Scoring

  1. Subtask ( points) : No additional constraints