#include <stdio.h>
#include <math.h>
typedef struct {
double a;
double b;
double c;
double area;
} list;
int main(void) {
list date;
double s = (date.a + date.b + date.c) / 2.0;
date.
area = sqrt(s
* (s
- date.
a) * (s
- date.
b) * (s
- date.
c));
printf("三角形の面積 : %lf\n", date.
area);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+Cgp0eXBlZGVmIHN0cnVjdCB7CiAgICBkb3VibGUgYTsKICAgIGRvdWJsZSBiOwogICAgZG91YmxlIGM7CiAgICBkb3VibGUgYXJlYTsKfSBsaXN0OwoKaW50IG1haW4odm9pZCkgewogICAgCiAgICBsaXN0IGRhdGU7CgogICAgc2NhbmYoIiVsZiIsICZkYXRlLmEpOwoKICAgIHNjYW5mKCIlbGYiLCAmZGF0ZS5iKTsKCiAgICBzY2FuZigiJWxmIiwgJmRhdGUuYyk7CgogICAgZG91YmxlIHMgPSAoZGF0ZS5hICsgZGF0ZS5iICsgZGF0ZS5jKSAvIDIuMDsKCiAgICBkYXRlLmFyZWEgPSBzcXJ0KHMgKiAocyAtIGRhdGUuYSkgKiAocyAtIGRhdGUuYikgKiAocyAtIGRhdGUuYykpOwoKICAgIHByaW50ZigiYSA6ICVsZlxuIiwgZGF0ZS5hKTsKICAgIHByaW50ZigiYiA6ICVsZlxuIiwgZGF0ZS5iKTsKICAgIHByaW50ZigiYyA6ICVsZlxuIiwgZGF0ZS5jKTsKICAgIHByaW50Zigi5LiJ6KeS5b2i44Gu6Z2i56mNIDogJWxmXG4iLCBkYXRlLmFyZWEpOwoKICAgIHJldHVybiAwOwp9