Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int v1,v2,ile;
- int main()
- {
- cin>>ile;
- for(int i=1; i<=ile; i++)
- {
- cin>>v1>>v2;
- cout<<2*v1*v2/(v1+v2)<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement