OJ-Problems-Source/HDOJ/2548_autoAC.cpp
2016-08-22 00:30:27 +08:00

14 lines
226 B
C++

#include<stdio.h>
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
double u,v,w,l;
scanf("%lf %lf %lf %lf",&u,&v,&w,&l);
printf("%.3f\n",(l/(u+v))*w);
}
return 0;
}