OJ-Problems-Source/HDOJ/3910_autoAC.cpp

12 lines
211 B
C++
Raw Normal View History

#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;
}