#include"testlib.h" #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const long long MIN_N = 2; const long long MAX_N = 1000; const long long MIN_M = 1; const long long MAX_M = 2500; const long long MIN_cost = 1; const long long MAX_cost = 1000000000; void validate(){ set> S; long long N = inf.readLong(MIN_N,MAX_N,"N"); inf.readSpace(); long long M = inf.readLong(MIN_M,MAX_M,"M"); inf.readEoln(); for (long long i=0;i edge={u,v}; if (S.find(edge)!=S.end()){ inf.readEof(); } else{ S.insert(edge); } inf.readEoln(); } inf.readEof(); } int main(int argc, char* argv[]){ registerValidation(argc,argv); validate(); }