#include"testlib.h" #include using namespace std; const int MIN_N = 2; const int MIN_MX = 1; const int MAX_NMX = 200'000; const int MIN_CT = 1; const int MAX_CT = 200'000; int main() { registerValidation(); int n = inf.readInt(MIN_N, MAX_NMX); inf.readSpace(); int m = inf.readInt(MIN_MX, MAX_NMX); inf.readSpace(); inf.readInt(MIN_MX, MAX_NMX); inf.readEoln(); for(int i = 0; i < m; i++){ inf.readInt(1, n); inf.readSpace(); inf.readInt(1, n); inf.readSpace(); inf.readInt(MIN_CT, MAX_CT); inf.readSpace(); inf.readInt(MIN_CT, MAX_CT); inf.readEoln(); } inf.readEof(); }