#include <stdio.h>
#include <math.h>
typedef struct {
double a;
double b;
double c;
} Triangle;
double calculateArea(Triangle t) {
double s=(t.a+t.b+t.c)/2;
return sqrt(s
*(s
-t.
a)*(s
-t.
b)*(s
-t.
c)); }
int main(){
Triangle t;
double area=calculateArea(t);
printf("三角形の面積:%.6f\n", area
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+Cgp0eXBlZGVmIHN0cnVjdCB7CiAgICBkb3VibGUgYTsKICAgIGRvdWJsZSBiOwogICAgZG91YmxlIGM7Cn0gVHJpYW5nbGU7Cgpkb3VibGUgY2FsY3VsYXRlQXJlYShUcmlhbmdsZSB0KSB7CiAgICBkb3VibGUgcz0odC5hK3QuYit0LmMpLzI7IAogICAgcmV0dXJuIHNxcnQocyoocy10LmEpKihzLXQuYikqKHMtdC5jKSk7IAp9CgppbnQgbWFpbigpewogICAgVHJpYW5nbGUgdDsgCgogICAgc2NhbmYoIiVsZiIsJnQuYSk7CiAgICBzY2FuZigiJWxmIiwmdC5iKTsKICAgIHNjYW5mKCIlbGYiLCZ0LmMpOwoKICAgIGRvdWJsZSBhcmVhPWNhbGN1bGF0ZUFyZWEodCk7CgogICAgCiAgICBwcmludGYoImE6JS5sZlxuIiwgdC5hKTsKICAgIHByaW50ZigiYjolLmxmXG4iLCB0LmIpOwogICAgcHJpbnRmKCJjOiUubGZcbiIsIHQuYyk7CiAgICBwcmludGYoIuS4ieinkuW9ouOBrumdouepjTolLjZmXG4iLCBhcmVhKTsKCiAgICByZXR1cm4gMDsKfQ==