406429: GYM102409 A Easy Math

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

Description

A. Easy Mathtime limit per test5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

Diego, knowing that calculating $$$A+B$$$ is the easiest problem ever created, decided to give you a problem that is just a little bit harder.

You are given 3 positive integers, $$$A$$$, $$$B$$$ and $$$C$$$. Your task is to compute $$$\frac{A+B}{C}$$$.

Input

In the first line, an integer, $$$T$$$ $$$(1 \le T \le 10^4)$$$, representing the amount of test cases.

Then, $$$T$$$ lines, each containing the 3 space-separated integers $$$A$$$, $$$B$$$, and $$$C$$$ $$$(1 \le A, B, C < 10^{50})$$$.

Output

$$$T$$$ lines, each containing the requested value with exactly 50 digits after the decimal point.

If the value would has more than 50 decimals, the rest should be *truncated*.

ExampleInput
3
1 3 2
10 25 5
99 89 17
Output
2.00000000000000000000000000000000000000000000000000
7.00000000000000000000000000000000000000000000000000
11.05882352941176470588235294117647058823529411764705

Source/Category

加入题单

算法标签: