60分求救!
查看原帖
60分求救!
1378709
Yue_Hao楼主2024/10/20 11:53
#include <stdio.h>
#define WA double
WA WAWA(WA a, WA b, WA c){
	if(a > b && b > c) return a;
	else if(b > a && a > c) return b;
	else return c;
}
int main(){
	WA a, b, c;
	scanf("%lf %lf %lf", &a, &b, &c);
	WA fz = WAWA(a, b, c), fm1 = WAWA((a + b), b, c), fm2 = WAWA(a, b, (b + c));
	WA ans = fz * 1.0 / (fm1 * 1.0 * fm2);
	printf("%.3f", ans);
	return 0;
}
2024/10/20 11:53
加载中...