最后一个点WA了
查看原帖
最后一个点WA了
82850
今天你WA了吗?楼主2021/3/20 00:02
#include <stdio.h>
#include <math.h>
int main()
{
	float a, b, c, P, Sp;
	scanf("%f%f%f", &a, &b, &c);
	P = (a + b + c)*0.5;
	Sp = sqrt(P * (P - a) * (P - b) * (P - c));
	printf("%.1lf", Sp);
	return 0;
}

没有想明白WA的原因,求解

2021/3/20 00:02
加载中...