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