二分图
二分图
雲轩x
这个作者很懒,什么都没留下…
展开
-
HDU-3488(二分图)
In the kingdom of Henryy, there are N (2 <= N <= 200) cities, with M (M <= 30000) one-way roads connecting them. You are lucky enough to have a chance to have a tour in the kingdom. The route...原创 2019-11-29 19:48:58 · 94 阅读 · 0 评论 -
HDU2255(二分图)
传说在遥远的地方有一个非常富裕的村落,有一天,村长决定进行制度改革:重新分配房子。这可是一件大事,关系到人民的住房问题啊。村里共有n间房间,刚好有n家老百姓,考虑到每家都要有房住(如果有老百姓没房子住的话,容易引起不安定因素),每家必须分配到一间房子且只能得到一间房子。另一方面,村长和另外的村领导希望得到最大的效益,这样村里的机构才会有钱.由于老百姓都比较富裕,他们都能对每一间房子在他们的经济...原创 2019-11-29 17:22:23 · 104 阅读 · 0 评论 -
L - Cat VS Dog(二分图 最大独立集)
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 b...原创 2019-11-27 20:52:50 · 142 阅读 · 0 评论 -
K - Treasure Exploration(二分图最小路径覆盖+传递闭包)
Have you ever read any book about treasure exploration? Have you ever see any film about treasure exploration? Have you ever explored treasure? If you never have such experiences, you would never know...原创 2019-11-27 19:41:55 · 186 阅读 · 0 评论 -
J - Air Raid HDU1151 (二分图)
Consider a town where all the streets are one-way and each street leads from one intersection to another. It is also known that starting from an intersection and walking through town’s streets you can...原创 2019-11-27 17:10:45 · 90 阅读 · 0 评论 -
I - Strategic Game (二分图)
Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is very sad. Now he has the following problem. He must defend a medieva...原创 2019-11-26 21:20:22 · 103 阅读 · 0 评论 -
H - Antenna Placement (二分图)
The Global Aerial Research Centre has been allotted the task of building the fifth generation of mobile phone nets in Sweden. The most striking reason why they got the job, is their discovery of a new...原创 2019-11-26 20:36:25 · 146 阅读 · 1 评论 -
G - Oil Skimming HDU4185 (二分图)
Thanks to a certain “green” resources company, there is a new profitable industry of oil skimming. There are large slicks of crude oil floating in the Gulf of Mexico just waiting to be scooped up by e...原创 2019-11-26 19:14:51 · 139 阅读 · 0 评论 -
F - Rain on your Parade HDU2389 (二分图 Hopcroft-Carp算法)
You’re giving a party in the garden of your villa by the sea. The party is a huge success, and everyone is here. It’s a warm, sunny evening, and a soothing wind sends fresh, salty air from the sea. Th...原创 2019-11-26 10:14:13 · 136 阅读 · 0 评论 -
D - 棋盘游戏(二分图) HDU1281
小希和Gardon在玩一个游戏:对一个N*M的棋盘,在格子里放尽量多的一些国际象棋里面的“车”,并且使得他们不能互相攻击,这当然很简单,但是Gardon限制了只有某些格子才可以放,小希还是很轻松的解决了这个问题(见下图)注意不能放车的地方不影响车的互相攻击。所以现在Gardon想让小希来解决一个更难的问题,在保证尽量多的“车”的前提下,棋盘里有些格子是可以避开的,也就是说,不在这些格子上放车,也...原创 2019-11-25 19:24:06 · 87 阅读 · 0 评论 -
C - Courses hdu1083(二分图匹配)
Consider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine whether it is possible to form a committee of exactly P students that sa...原创 2019-11-23 11:16:38 · 129 阅读 · 0 评论 -
B - The Accomodation of Students(二分图匹配)
There are a group of students. Some of them may know each other, while others don’t. For example, A and B know each other, B and C know each other. But this may not imply that A and C know each other....原创 2019-11-23 10:13:11 · 120 阅读 · 0 评论 -
E - Swap (二分图) HDU2819
Given an NN matrix with each entry equal to 0 or 1. You can swap any two rows or any two columns. Can you find a way to make all the diagonal entries equal to 1?InputThere are several test cases in ...原创 2019-11-25 19:26:48 · 102 阅读 · 0 评论