Educational Codeforces Round 74 (Rated for Div. 2)
A
# include<bits/stdc++.h>
using namespace std;
typedef long long LL;
int main()
{
    int t;
    scanf("%d",&t);
    while(t--){
        LL x,y;
        scanf("%lld%lld",&x,&y);
        LL c=x-y;
        if(c<=1) printf("NO\n");
        else printf("YES\n");
    }
    
    return 0;
 } 
B
# include <bits/stdc++.h>
using namespace std;
const int MAXN=1e5+100;
int x[MAXN];
int main()
{
    int q;
    scanf("%d",&q);
    while(q--){
        int n,r;
        scanf("%d%d",&n,&r);
        for(int i=1;i<=n;i++){
            scanf("%d",&x[i]);
        }
        sort(x+1,x+n+1,less<int>);
        for(int i=1;i<=n;i++){
            
        }
    }
    
    
    return 0;
 }