~/algor $ cat contests/round-7/AQ
AQ. Inscribed and circumscribed circles
Problem AQ
ICPC rules
1000 ms
64 MB
The sides of a triangle , and are given. Find the radius of its inscribed circle and the radius of its circumscribed circle; is the semi-perimeter, is the area:
Input
One line with three positive integers: , and .
Output
One line with two numbers: and , each with exactly 3 digits after the decimal point (for example, 1.000).
Note
Such a triangle exists: the sum of any two sides is greater than the third.
Examples
Input #1
3 4 5
Output #1
1.000 2.500
Input #2
2 2 2
Output #2
0.577 1.155