#include #include "testlib.h" using namespace std; using ll = long long; const int Nmin = 1, Nmax = 500'000; const int Hmin = 1, Hmax = 5'000; const int Xmin = 2, Xmax = 5; int main(){ registerValidation(); int N = inf.readInt(Nmin, Nmax); inf.readSpace(); int H = inf.readInt(Hmin, Hmax); inf.readSpace(); int X = inf.readInt(Xmin, Xmax); inf.readEoln(); vector al(N+1); int G = inf.readInt(0, min(N, 100)); inf.readEoln(); for (int i=0; i