Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <set>
  5. #include <queue>
  6. #include <stack>
  7. #include <map>
  8. #include <iostream>
  9. #include <algorithm>
  10. #include <fstream>
  11. #include <stdio.h>
  12. #include <stdlib.h>
  13. using namespace std;
  14.  
  15. int main()
  16. {
  17. double t, u, v, x;
  18. cin >> t;
  19. for(int i = 0; i < t; i++){
  20. cin >> u >> v >> x;
  21. printf("%.7f\n", x / (u + v));
  22. }
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement