mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
12 lines
211 B
C++
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;
|
||
|
}
|