SP6408 KKKCT2 - Counting Triangles 2

Description

This is a new version of problem CT with the new limit: X,Y

Input Format

The input begins with C – number of test cases. Each test case consists of X, Y.

Output Format

For each test case, output the result in a line.