求教!
查看原帖
求教!
1808249
lge5211楼主2025/7/31 12:05
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main(){	
double a;
double b;
double c;
double p=(a+b+c)/2;
cin>>a>>b>>c;
cout<<fixed<<setprecision(1)<<sqrt(p*(p-a)*(p-b)*(p-c));
return 0;
}      

2025/7/31 12:05
加载中...