求救!!
查看原帖
求救!!
1643431
dyx130707楼主2025/1/17 22:29
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main(){
	double a,b,c;
	cin >>a>>b>>c;
	int p=(a+b+c)*0.5;
    cout <<fixed<<setprecision(1)<<sqrt(p*((p-a)+(p-b)+(p-c))); 
	return 0;
}
2025/1/17 22:29
加载中...