提交时间:2024-01-27 14:37:51

运行 ID: 129940

#include<bits/stdc++.h> using namespace std; int main() { float a,b,c; cin>>a>>b>>c; float p=(a+b+c)/2; cout<<"area="; cout<<fixed<<setprecision(2)<<sqrt(p*(p-a)*(p-b)*(p-c)); return 0; }