#include "testlib.h" #include using namespace std; using ll = long long; const int Nmin = 1, Nmax = 200'000; const int Mmin = 1, Mmax = 200'000; const int Vmin = 0, Vmax = 100; const int Wmin = -100, Wmax = 100; int main(){ registerValidation(); int N = inf.readInt(Nmin, Nmax); inf.readSpace(); int M = inf.readInt(Mmin, Mmax); inf.readEoln(); vector Amin(3, Vmax), Amax(3, Vmin); for (int i=0; i A(3); A[0] = inf.readInt(Vmin, Vmax); inf.readSpace(); A[1] = inf.readInt(Vmin, Vmax); inf.readSpace(); A[2] = inf.readInt(Vmin, Vmax); inf.readEoln(); for (int j=0; j<3; j++){ Amin[j] = min(Amin[j], A[j]); Amax[j] = max(Amax[j], A[j]); } } for (int i=0; i X(3); X[0] = inf.readInt(Wmin, Wmax); inf.readSpace(); X[1] = inf.readInt(Wmin, Wmax); inf.readSpace(); X[2] = inf.readInt(Wmin, Wmax); inf.readEoln(); for (int j=0; j<3; j++){ assert(Vmin <= X[j] + Amin[j]); assert(X[j] + Amax[j] <= Vmax); } } inf.readEof(); }