mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
18 lines
299 B
C++
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;
|
||
|
}
|