OJ-Problems-Source/HDOJ/3752_autoAC.cpp
2016-09-04 14:14:07 +08:00

18 lines
299 B
C++

#include<iostream>
using namespace std;
int main()
{
int n;
scanf("%d", &n);
while(n--)
{
int a, b;
scanf("%d%d", &a, &b);
if(a % 2 == 1|| b > a / 2)
printf("NO\n");
else
printf("YES\n");
}
return 0;
}