#include"testlib.h" #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const long long MIN_N = 1; const long long MAX_N = 200000; const long long MIN_K = 1; const long long MAX_K = 2500; const long long MIN_a = -1000000000; const long long MAX_a = 1000000000; void validate(){ long long N = inf.readLong(MIN_N,MAX_N,"N"); inf.readSpace(); long long K = inf.readLong(0,N,"K"); inf.readEoln(); long long a = -1000000000; long long new_a = 0; for (long long i=0;i