#include #include #include #include using namespace std; const int MAX_N = 45000; const int MAX_M = 45000; bool matrice[MAX_N][MAX_M]; int n, m, a, b; int main() { ifstream fin("input.txt"); assert( fin ); fin >> n >> m >> a >> b; int i,j, temp1, temp2; for(i=0;i0) { fin >> temp1 >> temp2; matrice[temp1-1][temp2-1]=1; matrice[temp2-1][temp1-1]=1; cout << j <1) { for(j=0;j