题目:http://acm.hdu.edu.cn/showproblem.php?pid=2548
#include <stdio.h>
int main()
{
int T;
double u,v,w,l;
scanf("%d",&T);
while(T--)
scanf("%lf%lf%lf%lf",&u,&v,&w,&l),printf("%.3lf\n",l*w/(u+v));
return 0;
}
微信扫一扫
题目:http://acm.hdu.edu.cn/showproblem.php?pid=2548
#include <stdio.h>
int main()
{
int T;
double u,v,w,l;
scanf("%d",&T);
while(T--)
scanf("%lf%lf%lf%lf",&u,&v,&w,&l),printf("%.3lf\n",l*w/(u+v));
return 0;
}
相关推荐