/* [NWERC'08] EASY CLIMB by: Jan Kuipers */ using namespace std; #include #include long long N,D; vector h; int main () { int runs; cin>>runs; while (runs--) { cin>>N>>D; h = vector(N); for (int i=0; i>h[i]; if (abs(h[0]-h[N-1]) > (N-1)*D) { cout<<"impossible"< posh(N); for (int i=0; i best(H, LONG_LONG_MAX/2); for (int i=0; i next(H, LONG_LONG_MAX/2); int j=0; for (int i=0; i