ll n,a[4d5],x[4d5],y[4d5]; ll d,l; { ll iz; rd(n,a(n),x(n),y(n)); iz=n-1; ll j; for(j=n-2;j>=0;--j){ ll ib,iy,lb,ly,l1,l2; ib=iz; lb=(x[j]-a[iz])**2+y[j]**2; iy=ib; while(--iy>=j&&a[iy+1]>x[j]){ ly=(x[j]-a[iy])**2+y[j]**2+(x[iy+1]-a[iz])**2+y[iy+1]**2; if(ly<=lb){ lb=ly; ib=iy; } } if(ib