mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
9da6cdd5bd
3900-3999
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;
|
|
}
|