SP23435 BYU15W_4 - Game Calculator

Description

N/A

Input Format

The first line contains a single positive integer **T**, representing the number of test cases. **T** test cases follow. Each test case is two lines long. The first line of each test case contains a single decimal number **H**. The second line contains two positive integers **A** and **B**, representing the number of units in each army.

Output Format

For each test case, output a single line containing three decimal numbers representing the chance of A winning, B winning and ending in a draw, respectively. Each number should rounded to exactly 5 decimal places.