当y>=-1时,选手可以使用左下、右下的移动方式先对齐x | 默认选手的移动操作比硬币下落快一步
#pragma GCC optimize(2)
#pragma GCC optimize(3)
#include "bits/stdc++.h"
using namespace std;
#define ios ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define fios ofstream("test.txt");cout.rdbuf(out.rdbuf())
#define endl "\n"
#define INF 0x3f3f3f3f
#define MINF 2147483647
#define eps 1e-6
#define PI acos(-1)
#define lowbit(x) (x & (-x))
typedef unsigned long long ULL;
typedef long long LL;
typedef pair<int, int> PII;
#define x first
#define y second
const int N = 510;
int n;
int main()
{
cin >> n;
while(n--)
{
int x, y;
cin >> x >> y;
if(y >= -1) cout << "YES" << endl;
else cout << "NO" << endl;
}
return 0;
}