HDU 2548.两军交锋
2017-12-26 16:32
169 查看
题目:http://acm.hdu.edu.cn/showproblem.php?pid=2548
AC代码(C++):
总结: 水题. 总距离等于记者速度*交锋时间.
AC代码(C++):
#include <iostream> #include <queue> #include <string> #include <algorithm> #include <math.h> #define INF 0x3f3f3f3f #define eps 1e-8 using namespace std; int main() { int t; cin >> t; while (t--) { double u, v, w, l; cin >> u >> v >> w >> l; double ans = (l / (u + v))*w; printf("%.3lf\n", ans); } //system("pause"); }
总结: 水题. 总距离等于记者速度*交锋时间.
相关文章推荐
- HDU 2548 两军交锋(水题)
- HDOU/HDU 2548 两军交锋(看你的思维~)
- hdu-2548-两军交锋
- HDOU/HDU 2548 两军交锋(看你的思维~)
- HDU 2548 两军交锋 水水。。
- HDU2548——两军交锋
- HDU-2548-两军交锋(水)
- HDU-2548 两军交锋
- HDU 2548 两军交锋
- hdu 2548 两军交锋
- HDU 2548 两军交锋
- HDU-2548-两军交锋
- 两军交锋 HDU-2548 【思维】
- HDOJ 2548 两军交锋
- 杭电2548 两军交锋
- HDU2548 两军交锋【水题】
- 2548 两军交锋
- 杭电ACM HDU 2548 两军交锋
- hdu2548 两军交锋
- hdu2548 两军交锋(简单题)