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