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