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