#include using namespace std; typedef long long ll; typedef pair pii; typedef vector vi; #define RIDLs_code ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); #define fi1(x) for(int i=1;i<=x;++i) #define fi0(x) for(int i=0;i=end;--elem) #define all(x) (x).begin(), (x).end() #define pb push_back const int MOD = 1e9+7; const int INF = 0x3f3f3f3f; bool is[200005]={false}; bool cmp(pair a, pair b) { return a.first>n>>s; vector> a; ll pos, ind; fi1(n){ cin>>pos; a.push_back(make_pair(pos, i)); } if(n==1){ cout<<1<s){ is[a[i].second]=true; cnt++; } } else if(i==n-1){ if(a[i].first-a[i-1].first>s){ is[a[i].second]=true;cnt++;} } else{ if(a[i].first-a[i-1].first>s && a[i+1].first-a[i].first>s){ is[a[i].second]=true;cnt++;} } } cout<>T; while (T--) solve(); return 0; }