2606. Pinhole Imaging

Naive编程基础基本数据类型输入输出

时间限制:2000 ms

内存限制:256 MiB

题面

When placing a board with a pinhole in the middle between an object and a screen, the reversed image of the object will appear on the screen. That is the so-called pinhole imaging.

<img src='/upload/2606/2606.jpg'>

Assume that we have a candle and a screen. We know the distance AA between the pinhole and the candle. We also know the distance BB between the pinhole and the screen. We want to know the height of the fire displayed on the screen when we know the height HH of the real fire.

You could assume that the pinhole is very tiny and the screen is large enough.

输入格式

The input consists of multiple test cases. The first line of input contains an integer TT, which is the number of test cases.

Each test case is on a separated line, and it consists three integers: A,B,HA, B, H), separated by ONE whitespace.

TT is an integer, and T10T \le 10.

A,B,HA, B, H are integers, and 1A,B,H1 000 0001 \le A, B, H \le 1~000~000.

输出格式

For each test case, print a single line contains the height of the fire displayed on the screen, rounded to two fractional digits.

样例

输入

2
1 1 1
2 1 2

输出

1.00
1.00