#include #include"testlib.h" using ll = long long; using namespace std; int main(int argc, char* argv[]){ const int MIN_N = 1; const int MAX_N = 100000; const int MIN_M = 0; const int MAX_M = 100000; const int MIN_A = 1; const int MAX_A = 1000000000; registerValidation(argc, argv); int n = inf.readInt(MIN_N, MAX_N); inf.readSpace(); int m = inf.readInt(MIN_M, MAX_M); inf.readEoln(); for (int i = 0; i < m; i++) { int k = inf.readInt(2, n); inf.readSpace(); int c = inf.readInt(MIN_A, MAX_A); int last = 0; for (int j = 0; j < k; j++) { inf.readSpace(); int s = inf.readInt(last + 1, n); last = s; } inf.readEoln(); } inf.readEof(); return 0; }