409348: GYM103488 B Boboge and Tall Building

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

B. Boboge and Tall Buildingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

Boboge lives on the $$$n$$$-th floor of a building with a total height of $$$k$$$. This building has $$$m$$$ floors and each floor is of equal height, the height of first floor is $$$0$$$.

You have to calculate the height of the floor Boboge lives in.

Example of n=3,m=4,k=10
Input

The first line contains an integer $$$t(1\le t\le 100)$$$ — the number of test cases.

Each test case is described by three integers $$$n, m, k(1\le n,m,k\le 100, n\le m)$$$ — the floor Boboge lives in, number of total floors and total height of the building.

Output

For each test case, output the height of the floor Boboge lives in. Your answer will be accepted if absolute or relative error does not exceed $$$10^{-6}$$$. Formally, let your answer be $$$a$$$, and the jury's answer be $$$b$$$. Your answer is considered correct if $$$\frac{|a-b|}{max(1,|b|)}\le 10^{-6}$$$.

ExampleInput
3
3 4 10
1 4 10
2 3 10
Output
5.0000000000
0.0000000000
3.3333333333

加入题单

上一题 下一题 算法标签: