您的位置:首页 > 其它

两军交锋 hdu2548 水题

2013-01-26 15:01 169 查看
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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: