hdu2548 两军交锋
2016-01-15 19:57
190 查看
#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/(u+v)*w);
}
return 0;
}
心得:考后第一道题,虽然不要脸的水。。。
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/(u+v)*w);
}
return 0;
}
心得:考后第一道题,虽然不要脸的水。。。
相关文章推荐
- HDU 1568
- HDU1290
- HDU1568(Fobonacci公式)
- HDU ACM Step 2.2.2 Joseph(约瑟夫环问题)
- HDU 1405
- HDU 1297
- hdu 1205
- hdu 2087
- hdu 1016
- HDU 4898 The Revenge of the Princess’ Knight ( 2014 Multi-University Training Contest 4 )
- HDU 5592 ZYB's Premutation 线段树(查找动态区间第K大)
- HDU 5240 Exam (好水的题)
- HDU5237 Base64 大模拟
- HDU 1000
- HDU 1001
- 2015-11-11 hdu新生赛 A题(AC)
- 2015-11-11 hdu新生赛 C题(结束后一发AC)
- 2015-11-11 hdu新生赛 E题(结束后一发AC)
- 2015-11-11 hdu新生赛 F题(结束后一发AC)
- hdu-5385