#include <bits/stdc++.h> using namespace std; const int maxn = 1010; int n,m,e; int vis[maxn][maxn]; int ask[maxn]; int cnt, ans; int matched[maxn]; bool fid(int x) { for (int i = 1 ; i <= m; i++) if (vis[x][i]) { if (ask[i]) continue; ask[i...