也不知道哪里错了。
#include <bits/stdc++.h> using namespace std; int main(){ double a,b,c; scanf("%f%f%f",a,b,c); double p=(a+b+c)/2; printf("%.1f",sqrt(p*(p-a)*(p-b)*(p-c))); return 0; }