为什么总是过不了啊
查看原帖
为什么总是过不了啊
1027350
Etayo楼主2023/7/5 18:12
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
    int a, b, c;
    double s,p;
    scanf("%d %d %d", &a, &b, &c);
    p = 0.5 * (a + b + c);
    s = pow((p * (p - a) * (p - b) * (p - c)), 0.5);
    printf("%1f", s);
    return 0;
}

为什么总是过不了啊

2023/7/5 18:12
加载中...