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