#include using namespace std; int n,a,b; int x[200010]; int d[200010]; void dfs(int k,int t){ for(int i=k+1;i=a && abs(x[i]-x[k])<=b){ d[i]=t; dfs(i,t); } } return; } int main(){ cin>>n>>a>>b; for(int i=0;i>x[i]; d[i]=0; } int t=1; for(int i=0;imp; for(int i=0;i