Dhoni and Practice Sessions
All submissions for this problem are available.
As ICC cricket world cup is going to be held in
Australia in the month of February, Indian team's
captain MSD decided to practice hard and try to
win this consecutive world cup title. He is very
much concern about his three slip fielders who
are going to play crucial part on that hard and
bouncy pitches of Perth and MCG.
Captain cool decided a very weird method to practice slip catches, he asked his three fielders to stand on the ground forming a triangle then he measures the distance as real number A between slip fielder 1 and 2, B between fielder 2 and 3 and C between fielder 3 and 1. After setting their position he tells the groundsmen to draw a circle so that it touches all the three players. But groundsmen is very weak in geometry and wants to know the radius of the circle, so he gives this problem to his son who studies in BIT Deoghar and asks him to write a code for this so he can draw this type of circle in future as well.
First line of input file contains the number of test cases T.
Next T lines contains real numbers A,B, and C on each line of Input file.
In each case output the radius of the circle correct up to 2 decimal places.
- 1 ≤ T ≤ 1000
- 1 ≤ A,B,C ≤ 500
Input: 2 4.00 5.00 6.00 3.00 9.00 8.00 Output: 3.02 4.56
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, SCM chicken, CLOJ, FS|
Fetching successful submissions