You are given 2 integers N and K. Your task is to count the triplets of the form (x, y, z) while meeting these conditions:
Important: Use a FAST I/O
Input
Output
For each test case, print the count of triples of the form (x, y, z), while meeting the given conditions, in a separate line.
Constraints
1≤T≤1060≤K≤N≤109
In the first test case, we have N=6,K=0. The 2 triples satisfying the conditions are (4,1,1),(2,2,2).
In the second test case, we have N=12,K=3. The 5 triples satisying the conditons are (10,1,1),(9,2,1),(8,3,1),(8,2,2),(4,4,4).
In both above samples, it is easy to verify that all 3 conditions hold and there are no other triples satisfying the conditions.