Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define db double
- using namespace std;
- int main ()
- {
- int n;
- cin >>n;
- while (n--)
- {
- cin >>a>>b;
- db ma ,mi;
- ma= max (a,b);
- mi = min (a,b);
- db x = ma - mi ;
- if (x*2==mi)
- cout <<"yes"<<endl;
- else
- cout<<"no"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement