属性分析
发布时间
阅读量:
阅读量
#include<bits/stdc++.h>//<<fixed<<setprecision(3)
using namespace std;
int main()
{
float a,b,c;//
float p,s;
cin>>a>>b>>c;//3 4 5
p=(a+b+c)/2;//6
s=sqrt(p*(p-a)*(p-b)*(p-c));
if(a+b>c&&a+c>b&&b+c>a)//
cout<<s<<endl;//6
else//
cout<<"No"<<endl;//
return 0;
}
全部评论 (0)
还没有任何评论哟~
