#include <stdio.h>
#include <math.h>
typedef struct {
double a;
double b;
double c;
} Triangle;
int main() {
Triangle triangle;
double p;
double area;
scanf("%lf", &triangle.
a); scanf("%lf", &triangle.
b); scanf("%lf", &triangle.
c);
p = (triangle.a + triangle.b + triangle.c) / 2.0;
area
= sqrt(p
* (p
- triangle.
a) * (p
- triangle.
b) * (p
- triangle.
c));
printf("a = %.2lf, b = %.2lf, c = %.2lf\n", triangle.
a, triangle.
b, triangle.
c); printf("三角形の面積: %.2lf\n", area
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+Cgp0eXBlZGVmIHN0cnVjdCB7CiAgICBkb3VibGUgYTsKICAgIGRvdWJsZSBiOwogICAgZG91YmxlIGM7Cn0gVHJpYW5nbGU7CgppbnQgbWFpbigpIHsKICAgIFRyaWFuZ2xlIHRyaWFuZ2xlOwogICAgZG91YmxlIHA7CiAgICBkb3VibGUgYXJlYTsKCiAgICBwcmludGYoIuS4ieinkuW9ouOBrui+umHjgpLlhaXlipvjgZfjgabjgY/jgaDjgZXjgYQ6ICIpOwogICAgc2NhbmYoIiVsZiIsICZ0cmlhbmdsZS5hKTsKICAgIHByaW50Zigi5LiJ6KeS5b2i44Gu6L66YuOCkuWFpeWKm+OBl+OBpuOBj+OBoOOBleOBhDogIik7CiAgICBzY2FuZigiJWxmIiwgJnRyaWFuZ2xlLmIpOwogICAgcHJpbnRmKCLkuInop5LlvaLjga7ovrpj44KS5YWl5Yqb44GX44Gm44GP44Gg44GV44GEOiAiKTsKICAgIHNjYW5mKCIlbGYiLCAmdHJpYW5nbGUuYyk7CgogICAgcCA9ICh0cmlhbmdsZS5hICsgdHJpYW5nbGUuYiArIHRyaWFuZ2xlLmMpIC8gMi4wOwogICAgYXJlYSA9IHNxcnQocCAqIChwIC0gdHJpYW5nbGUuYSkgKiAocCAtIHRyaWFuZ2xlLmIpICogKHAgLSB0cmlhbmdsZS5jKSk7CgogICAgcHJpbnRmKCJhID0gJS4ybGYsIGIgPSAlLjJsZiwgYyA9ICUuMmxmXG4iLCB0cmlhbmdsZS5hLCB0cmlhbmdsZS5iLCB0cmlhbmdsZS5jKTsKICAgIHByaW50Zigi5LiJ6KeS5b2i44Gu6Z2i56mNOiAlLjJsZlxuIiwgYXJlYSk7CgogICAgcmV0dXJuIDA7Cn0=