d489

輸入說明 :

輸入只有一行,含有三個以空白隔開的正整數,代表伏林的三角形土地的三邊長。

輸出說明 : 請輸出一個整數,代表伏林的土地的價值。其價值會是一個介於 1 和 2147483647 之間的整數。

海龍公式

#include<stdio.h>
#include<math.h>
int main()
{
  int a,b,c,s;
  int temp;
  scanf("%d %d %d",&a,&b,&c);
  s=(a+b+c)/2;
  temp=s*(s-a)*(s-b)*(s-c);
  printf("%d",temp);
}