OJ-Problems-Source/HDOJ/3910_autoAC.cpp
2016-09-04 14:19:03 +08:00

12 lines
211 B
C++

#include<stdio.h>
int main()
{
int A,B,C;
while(scanf("%d%d%d",&A,&B,&C)!=EOF)
{
double x=(double)(B+C)/(A+B+C*2);
printf("%.6lf\n",(1-x)*B-x*C);
}
return 0;
}