http://acm.hdu.edu.cn/diy/contest_show.php?cid=16046
大水题。还能说什么呢。只能说路程除以速度等于时间。。。
#include <iostream>
using namespace std;
int main(){
#ifndef ONLINE_JUDGE
freopen("2548in.txt","r",stdin);
#endif
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/(u+v)*w);
}
return 0;
}
本文探讨了大水题中的基本概念,即路程除以速度等于时间,并通过具体实例展示了如何应用这一公式解决实际问题。文章包括代码实现,详细解释了输入输出格式,并提供了关键步骤说明。
548

被折叠的 条评论
为什么被折叠?



