#include <stdio.h>
#include <math.h>
int main(void) {
double a, b, c; // 三角形の3辺
double s, area; // 半周長と面積
// 3辺の長さを入力
// 半周長を計算
s = (a + b + c) / 2;
// ヘロンの公式で面積を計算
area
= sqrt(s
* (s
- a
) * (s
- b
) * (s
- c
));
// 結果を出力
printf("三角形の面積: %.6lf\n", area
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgppbnQgbWFpbih2b2lkKSB7CiAgICBkb3VibGUgYSwgYiwgYzsgIC8vIOS4ieinkuW9ouOBrjPovroKICAgIGRvdWJsZSBzLCBhcmVhOyAgLy8g5Y2K5ZGo6ZW344Go6Z2i56mNCgogICAgLy8gM+i+uuOBrumVt+OBleOCkuWFpeWKmwogICAgcHJpbnRmKCJhOiVkIixhKTsKICAgIHNjYW5mKCIlbGYiLCAmYSk7CiAgICBwcmludGYoImI6JWQiLGIpOwogICAgc2NhbmYoIiVsZiIsICZiKTsKICAgIHByaW50ZigiYzolZCIsYyk7CiAgICBzY2FuZigiJWxmIiwgJmMpOwoKICAgIC8vIOWNiuWRqOmVt+OCkuioiOeulwogICAgcyA9IChhICsgYiArIGMpIC8gMjsKCiAgICAvLyDjg5jjg63jg7Pjga7lhazlvI/jgafpnaLnqY3jgpLoqIjnrpcKICAgIGFyZWEgPSBzcXJ0KHMgKiAocyAtIGEpICogKHMgLSBiKSAqIChzIC0gYykpOwoKICAgIC8vIOe1kOaenOOCkuWHuuWKmwogICAgcHJpbnRmKCLkuInop5LlvaLjga7pnaLnqY06ICUuNmxmXG4iLCBhcmVhKTsKCiAgICByZXR1cm4gMDsKfQ==