#P109. [Extra Contest #1] Polygon Areas

[Extra Contest #1] Polygon Areas

Person in Charge

Problem Description

Given that the nmnm vertices of a simple nmnm-gon form exactly an n×mn \times m square grid (each small square has side length 11), find the average area of all such polygons.

Input Format

This problem contains multiple test cases.

The first line contains a positive integer T (1T400)T\ (1 \le T \le 400), indicating the number of test cases.

The following TT lines each contain two positive integers n,m (6n,m25)n,m\ (6 \le n,m \le 25).

Output Format

For each test case, output a line with a 33-decimal-place number representing the answer. No errors are allowed.

Samples

1
6 6
17.000