#include #include #include using namespace std; int main(){ int n,d,K,m=0,j=0,k=0; cin>>n>>d>>K; vector x(n); for(int &i:x) cin>>i; set> s; for(int i=0;i<=d;++i) s.insert({x[i],i}); for(int i=0;ifirst-1,n}); if(p->first-x[i]>m){ m=p->first-x[i]; j=i; k=p->second; } s.erase({x[i],i}); if(i+d+1