1 solutions
-
0
C++ :
#include<iostream> #include<cmath> #include<cstdio> #define S(a,b,c) (a+b+c)/2 #define AREA(a,b,c) sqrt(S(a,b,c)*(S(a,b,c)-a)*(S(a,b,c)-b)*(S(a,b,c)-c)) using namespace std; int main() { double a,b,c; cin>>a>>b>>c; printf("%.3lf\n",AREA(a,b,c)); return 0; }
- 1
Information
- ID
- 16702
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By