#include<stdio.h> int max3(int a,int b,int c) { return a>b? a>c?a:c : b>c?b:c;//逻辑表达式 } int main() { int a = 0; int b = 0; int c = 0; float m = 0; scanf("%d %d %d",&a,&b,&c); m = 1.0*max3(a+b,b,c)/( (max3(a,b+c,c) + max3(a,b,b+c) ); printf("%.2f",m); return 0; }