Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int v1,v2,ile;
  5. int main()
  6. {
  7.  
  8. cin>>ile;
  9. for(int i=1; i<=ile; i++)
  10. {
  11. cin>>v1>>v2;
  12. cout<<2*v1*v2/(v1+v2)<<endl;
  13. }
  14.  
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement