#include "testlib.h" #include #include using namespace std; using ll=long long; const ll MIN_N=1; const ll MAX_N=500000000000000000LL; const ll MIN_M=1; const ll MAX_M=100000; const ll MIN_A=0; const ll MIN_Q=1; const ll MAX_Q=100000; const ll MIN_T=1; const ll MAX_T=3; const ll MIN_X=1; const ll MIN_Y=1; const ll MAX_Y=1000000000000LL; int main(){ registerValidation(); ll N,M; N=inf.readLong(MIN_N,MAX_N); inf.readSpace(); M=inf.readLong(MIN_M,MAX_M); inf.readEoln(); vectora(M); ll sum=0; for(ll i=0;i0){ cnt++; } } bool flag=false; ll Q; Q=inf.readLong(MIN_Q,MAX_Q); inf.readEoln(); for(ll i=0;i0); } assert(flag); inf.readEof(); return 0; }