beloved专题

ZOJ 2362 Beloved Sons

题意: 将男孩和女孩配对  让月老开心度最高 (我把题目改得真洋气…) 思路: KM不解释… 代码: #include<cstdio>#include<cstring>#include<algorithm>#define oo 99999999#define M 410using namespace std;int t,n,m,ans;int link[M],