#include<bits/stdc++.h>
using namespace std;
int main()
{
double a, b, c, s, A;
cout << showpoint;
cout << fixed;
cout << setprecision(3);
while(cin >> a >> b >> c)
{
s = 0.5 * (a+b+c);
A = 4/3.0 * sqrt(s*(s-a)*(s-b)*(s-c));
if(A > 0)
cout << A << endl;
else
cout << -1.000 << endl;
}
return 0;
}
using namespace std;
int main()
{
double a, b, c, s, A;
cout << showpoint;
cout << fixed;
cout << setprecision(3);
while(cin >> a >> b >> c)
{
s = 0.5 * (a+b+c);
A = 4/3.0 * sqrt(s*(s-a)*(s-b)*(s-c));
if(A > 0)
cout << A << endl;
else
cout << -1.000 << endl;
}
return 0;
}
Comments
Post a Comment