http://acm.hdu.edu.cn/showproblem.php?pid=2548
//水题 #include <iostream> using namespace std; int main() { int t; double u, v, l, w; cin >> t; while (t--) { cin >> u >> v >> w >> l; printf("%.3lf\n", l/(v+u)*w ); } return 0; }
http://acm.hdu.edu.cn/showproblem.php?pid=2548
//水题 #include <iostream> using namespace std; int main() { int t; double u, v, l, w; cin >> t; while (t--) { cin >> u >> v >> w >> l; printf("%.3lf\n", l/(v+u)*w ); } return 0; }