#include <stdio.h>
#include <math.h>
typedef struct tri{
double a;
double b;
double c;
} Tri;
void display(Tri *t){
}
double heron(Tri *t){
double p;
p = (t->a + t->b + t->c) / 2;
return sqrt(p
* (p
- t
->a
) * (p
- t
->b
) * (p
- t
->c
)); }
int main(void){
Tri t;
display(&t);
printf("三角形の面積 : %f\n", heron
(&t
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CnR5cGVkZWYgc3RydWN0IHRyaXsKICAgIGRvdWJsZSBhOwogICAgZG91YmxlIGI7CiAgICBkb3VibGUgYzsKfSBUcmk7CnZvaWQgZGlzcGxheShUcmkgKnQpewogICAgcHJpbnRmKCJhID0gJWZcbiIsIHQtPmEpOwogICAgcHJpbnRmKCJiID0gJWZcbiIsIHQtPmIpOwogICAgcHJpbnRmKCJjID0gJWZcbiIsIHQtPmMpOwp9CmRvdWJsZSBoZXJvbihUcmkgKnQpewogICAgZG91YmxlIHA7CiAgICBwID0gKHQtPmEgKyB0LT5iICsgdC0+YykgLyAyOwogICAgcmV0dXJuIHNxcnQocCogKHAgLSB0LT5hKSAqIChwIC0gdC0+YikgKiAocCAtIHQtPmMpKTsKfQppbnQgbWFpbih2b2lkKXsKICAgIFRyaSB0OwogICAgc2NhbmYoIiVsZiIsICZ0LmEpOwogICAgc2NhbmYoIiVsZiIsICZ0LmIpOwogICAgc2NhbmYoIiVsZiIsICZ0LmMpOwogICAgZGlzcGxheSgmdCk7CiAgICBwcmludGYoIuS4ieinkuW9ouOBrumdouepjSDvvJogJWZcbiIsIGhlcm9uKCZ0KSk7CiAgICByZXR1cm4gMDsKfQo=