A-L 二分匹配 M-O 二分图多重匹配 P-Q 二分图最大权匹配 R-S 一般图匹配带花树 模板请自己找 ID Origin Title 61 / 72 Problem A HDU 1045 Fire Net 52 / 112 Problem B HDU 2444 The Accomodation of Students 45 / 86 Problem C HDU 1083 Courses 44 / 63 Problem D HDU 1281 棋盘游戏 35…
ID Origin Title 62 / 175 Problem A CodeForces 55D Beautiful numbers 30 / 84 Problem B HDU 4352 XHXJ's LIS 108 / 195 Problem C HDU 2089 不要62 89 / 222 Problem D HDU 3555 Bomb 59 / 107 Problem E POJ 3252 Round Numbers 47 / 75 Problem…
ID Origin Title 34 / 81 Problem A POJ 3436 ACM Computer Factory 92 / 195 Problem B POJ 3281 Dining 55 / 148 Problem C POJ 1087 A Plug for UNIX 59 / 111 Problem D POJ 2195 Going Home 44 / 132 Problem E POJ 2516 Minimum Cost 35 / 72…
A - 棋盘问题 POJ - 1321 注意条件:不能每放一个棋子,就标记一行和一列,我们直接枚举每一行就可以了. AC代码: #include<iostream> #include<stdio.h> #include<cstring> using namespace std; # define ll long long ; char str[maxn][maxn]; int vis[maxn]; int n,m,num; void dfs(int u,int cnt)…
并查集的介绍可以看下https://www.cnblogs.com/jkzr/p/10290488.html A - Wireless Network POJ - 2236 An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unexpected afters…