做题
又忘记转换数据类型了;
唉
#include<iostream>
#include<algorithm>
#include<math.h>
using namespace std;
int max3(int a,int b,int c){
int x[3];
x[0]=a;
x[1]=b;
x[2]=c;
sort(x,x+3);
return x[2];
}
int main()
{
double m;
int a,b,c;
cin>>a>>b>>c;
m=max3(a+b,b,c)*1.0/(max3(a,c+b,c)+max3(a,b,b+c));
printf("%.2f",m);
}