/* 0214sh7's validation */ #include #include "testlib.h" using namespace std; const long long MIN_N = 1, MAX_N = 100'000; const long long MIN_K = 1; const long long MIN_M = 0, MAX_M = 100'000; const long long MIN_P = 1, MAX_P = 1'000; int main(){ registerValidation(); long long N = inf.readLong(MIN_N, MAX_N); inf.readSpace(); long long K = inf.readLong(MIN_K, N); inf.readSpace(); long long M = inf.readLong(MIN_M, min(MAX_M,N*(N-1)/2)); inf.readSpace(); long long P = inf.readLong(MIN_P, MAX_P); inf.readEoln(); set> edge; for(int i=0;i X(K); for(int i=0;i