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

14 lines
226 B
C++
Raw Normal View History

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