delete pics to save space
This commit is contained in:
17
history_source/信息学奥赛一本通/1.2.6.10.cpp
Normal file
17
history_source/信息学奥赛一本通/1.2.6.10.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include<cstdio>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
double a,b,c;
|
||||
scanf("%lf%lf%lf",&a,&b,&c);
|
||||
if(!(a+b>c&&a+c>b&&b+c>a)) printf("no\n");
|
||||
else
|
||||
{
|
||||
double p=(a+b+c)/2.0;
|
||||
double ans=sqrt(p*(p-a)*(p-b)*(p-c));
|
||||
printf("%lf\n",ans);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user