Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7031 - Гурвалжны талбай

Гурвалжны гурван тал өгөгдсөн бол талбайг нь ол.

Input

Нэг мөрөнд зайгаар тусгаарлагдан гурвалжны 3 тал бодит тоогоор өгөгдөнө.

Output

Гурвалжны талбайг таслалаас хойш 2 орны нарийвчлалтай дүрсэл.

Example

Input:
3.0 4.0 5.0

Output:
6.00

Нэмсэн:Bataa
Огноо:2013-01-15
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2020-11-19 10:27:03
#include<stdio.h>
#include<math.h>
int main(){
float a, b, c, f, d,g;
scanf("%f%f%f", &a,&b,&c);
d =(a+b+c)*1/2;
g= d*(d-a)*(d-b)*(d-c);
f= sqrt(g);
printf("%.2f",f);
return 0;
}
2020-10-21 10:22:51
#include <cstdio>
#include <algorithm>
#include <cmath>

int main(){
double a , b , c;
scanf("%d%d%d", &a, &b, &c);
double p = (a + b + c) * 1.0 / 2;
double s = sqrt(p * (p - a) * (p - b) *(p - c));
printf("%.2lf" , s);
}
2020-08-16 20:06:43
#include <iostream>
#include <iomanip>
using namespace std;
#include <math.h>

int main() {
float a, b, c, p, s;
cin >> a >> b >> c;
p = (a + b + c)/2;
s = sqrt(p*(p-a)*(p-b)*(p-c));
cout.setf(ios::fixed);
cout.precision(2);
cout << s;
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.