思路:匈牙利 n-ans/2; // by SiriusRen #include <cstdio> #include <cstring> #define N 505 using namespace std; int jy,xx,yy,n,tot,ans; int first[N],next[N*N],v[N*N],mat[N]; bool vis[N]; void add(int x,int y){v[tot]=y,next[tot]=first[x],first[x]=tot++…
Girls and Boys Time Limit: 5000MS Memory Limit: 10000K Total Submissions: 12192 Accepted: 5454 Description In the second year of the university somebody started a study on the romantic r…
Cat VS Dog Problem Description The zoo have N cats and M dogs, today there are P children visiting the zoo, each child has a like-animal and a dislike-animal, if the child's like-animal is a cat, then his/hers dislike-animal must be a dog, and vice v…
Girls and Boys Time Limit: 5000ms Memory Limit: 10000KB This problem will be judged on PKU. Original ID: 1466 64-bit integer IO format: %lld Java class name: Main In the second year of the university somebody started a study on the romantic(浪漫的)…