/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Scanner x
= new Scanner
(System.
in); double a,b,c ;
a = x.nextDouble();
b = x.nextDouble();
c = x.nextDouble() ;
if (a + b >= c && b + c >= a && a + c >= b)
{
double p = (a + b + c)/2;
double S
= Math.
sqrt(p
* (p
- a
) * (p
- b
) * (p
- c
)); double r = S/p;
double R = (a*b*c)/4*S;
System.
out.
format("Радиус вписанной окружности равен = %f\n",r
); System.
out.
format("Радиус описанной окружности равен = %f ",R
); }
else
{
System.
out.
print("Не существует"); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwogCmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwppbXBvcnQgamF2YS5tYXRoLio7CiAKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTY2FubmVyIHggPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCWRvdWJsZSBhLGIsYyA7CgkJYSA9IHgubmV4dERvdWJsZSgpOwoJCWIgPSB4Lm5leHREb3VibGUoKTsKCQljID0geC5uZXh0RG91YmxlKCkgOwoJCWlmIChhICsgYiA+PSBjICYmIGIgKyBjID49IGEgJiYgYSArIGMgPj0gYikKCQl7CgkJCWRvdWJsZSBwID0gKGEgKyBiICsgYykvMjsgCQoJCQlkb3VibGUgUyA9IE1hdGguc3FydChwICogKHAgLSBhKSAqIChwIC0gYikgKiAocCAtIGMpKTsKCQkJZG91Ym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