# Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

You went to an exciting adventure in a deep jungle but sadly a giant captured you. The giant said that, if you can solve a simple problem it will let you go. It will give you the lengths of the three sides of a triangle. All you have to do is calculate the area of the triangle.

If the three sides of a triangle are a, b and c. Then:

`$ s = (a+b+c)/2 $`

`$ Area = \sqrt{s \times (s-a) \times (s-b) \times (s-c)} $`

The first line of the input will contain an integer **N**. Then N lines will follow. Each of the lines will have three integers a, b and c.

For each test case print the area of the triangle. Two decimal digit will suffice. If the three sides don’t form a triangle print “Oh, No!”.

Input | Output |
---|---|

2 8 6 10 3 4 5 | 24.00 6.00 |

50% Solution Ratio

fci_zeroEarliest,

fci_zeroFastest, 0.0s

HillolTalukdarLightest, 0 B

touhidurShortest, 159B

Login to submit