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