#include #include"testlib.h" using ll = long long; using namespace std; int main(int argc, char* argv[]){ const int MIN_H = 1; const int MAX_H = 500; const int MIN_W = 1; const int MAX_W = 500; const int MIN_A = 0; const int MAX_A = 500000; registerValidation(argc, argv); int h = inf.readInt(MIN_H, MAX_H); inf.readSpace(); int w = inf.readInt(MIN_W, MAX_W); inf.readEoln(); for (int i = 0; i < h; i++) { inf.readInts(w, MIN_A, MAX_A); inf.readEoln(); } inf.readEof(); return 0; }