

The first line contains 'T', denoting the number of tests.
For each Test :
The only line contains three space-separated integers 'X', 'N' and 'M', denoting amount of milk, row number and position of child from left, respectively.
For each test, print one floating number (with 6 digits of precision), denoting the amount of milk a child has, standing in 'N'-th row at 'M'-th position.
You are not required to print the expected output. It has already been taken care of. Just implement the function.
1 <= 'T' <= 10
1 <= 'M' <= 'N' <= 10^3
0 <= 'X' <= 10^4
Sum of 'N' and sum of 'M' over all test cases doesn't exceed 10^3.
Time Limit: 1 sec
Maintain a 'dp' of size N*(N+1)/2 to store the amount of milk each child has till N-th row.
Run two nested loops, the outer one to iterate row number and the inner one for positions in a particular row. Assign all the milk to the first child and start distributing as mentioned in the problem.
Algorithm: