二分图
mengbi_er
一个蒟蒻JLoier
展开
-
bzoj1191: [HNOI2006]超级英雄Hero
裸的二分图匹配,从前往后匹配,匹配不到直接跳出。#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>using namespace std;int read(){ char ch=getchar();int f=0; while(ch<'0'||ch>'9') ch=getchar()原创 2017-07-04 22:14:18 · 157 阅读 · 0 评论 -
bzoj3546: [ONTAK2010]Life of the Party
传送门#include <bits/stdc++.h>using namespace std;#define mpr make_pairconst int N = 20050;const int M = 100050;const int oo = 0x3fffffff;inline int in(int x=0,char s=getchar()) { while(s>'9'||s<'0')s=原创 2017-07-05 19:43:52 · 309 阅读 · 0 评论