#include #define int long long using namespace std; template//快读 inline void read(type &x){ x=0; static bool flag(0); char ch=getchar(); while(!isdigit(ch)){ flag=ch=='-'; ch=getchar(); } while(isdigit(ch)){ x=(x<<1)+(x<<3)+(ch^48); ch=getchar(); } flag?x=-x:0; } template//快写 inline void write(type x,bool mode=1){ x<0?x=-x,putchar('-'):0; static short Stack[50],top(0); do{ Stack[++top]=x%10,x/=10; }while(x); while(top){ putchar(Stack[top--]|48); } mode?putchar('\n'):putchar(' '); } const int maxn=3e5+5; int n; vectora(maxn),x(maxn),y(maxn),idx(maxn),dp(maxn,1e18); inline int f(int s,int t){ int X=abs(a[s]-x[t-1]); int Y=abs(0-y[t-1]); return X*X*X+Y*Y*Y; } inline void check(int s,int t){ if(dp[s]+f(s,t)>1; for(int i=idx[l];i<=idx[r];i++){ check(i,m); } solve(l,m); for(int i=l+1;i<=m;i++){ check(i,r); } solve(m,r); } signed main(){ //freopen("gabbage.in","r",stdin); //freopen("gabbage.out","w",stdout); cin >> n; for(int i=0;i