Java Hyd Team
746 subscribers
986 photos
39 videos
670 files
690 links
https://teamhydteam.my.canva.site/

Can visit us on our website ๐Ÿ˜Š
Still working on it ๐Ÿ˜Š
Download Telegram
Today's 10/01/2023
interview questions
No Google full-screen Sharing ๐Ÿ˜‚
Check outputs and let me know how many are correct ๐Ÿ’ฏ
Problem
Given the lengths of the edges of a tetrahedron calculate the radius of a sphere inscribed in that tetrahedron (i.e. a sphere tangent to all the faces).

Input
An integer t, 1<=t<=30, denoting the number of test cases, followed by t lines, each containing 6 integers describing the lengths of the edges of a tetrahedron separated by single spaces. The edges are not longer than 1000 and for the tetrahedron WXYZ, the order of the edges is: WX, WY, WZ, XY, XZ, YZ.

Output
t lines, each consisting of a real number given with four digits decimal precision equal to the radius of a sphere inscribed in the given tetrahedron.

Example
Input:
2
1 1 1 1 1 1
1000 999 998 5 5 6
Output:
0.2041
1.4189
Execute above mentioned question โ“ QUESTION OF THE DAY
Java Hyd Team pinned ยซExecute above mentioned question โ“ QUESTION OF THE DAYยป