二分图
文章平均质量分 75
NineFailure
这个作者很懒,什么都没留下…
展开
-
HDU1281 (1/600)
小希和Gardon在玩一个游戏:对一个N*M的棋盘,在格子里放尽量多的一些国际象棋里面的“车”,并且使得他们不能互相攻击,这当然很简单,但是Gardon限制了只有某些格子才可以放,小希还是很轻松的解决了这个问题(见下图)注意不能放车的地方不影响车的互相攻击。 所以现在Gardon想让小希来解决一个更难的问题,在保证尽量多的“车”的前提下,棋盘里有些格子是可以避开的,也就是说,不在这些格子上放车,原创 2017-06-07 16:19:12 · 266 阅读 · 0 评论 -
HDU 2255 (2/600)
传说在遥远的地方有一个非常富裕的村落,有一天,村长决定进行制度改革:重新分配房子。 这可是一件大事,关系到人民的住房问题啊。村里共有n间房间,刚好有n家老百姓,考虑到每家都要有房住(如果有老百姓没房子住的话,容易引起不安定因素),每家必须分配到一间房子且只能得到一间房子。 另一方面,村长和另外的村领导希望得到最大的效益,这样村里的机构才会有钱.由于老百姓都比较富裕,他们都能对每一间房子在他们原创 2017-06-07 22:03:26 · 301 阅读 · 0 评论 -
HDU1045 (3/600)
Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall. A blockhouse is a small castle that原创 2017-06-08 16:20:53 · 276 阅读 · 0 评论 -
HDU 2444 (6/600)
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.原创 2017-06-09 01:01:21 · 285 阅读 · 0 评论 -
HDU3829 (9/600)
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原创 2017-06-10 12:41:12 · 253 阅读 · 0 评论 -
HDU1151 (10/600)
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原创 2017-06-10 17:11:33 · 321 阅读 · 0 评论 -
HDU4185 (11/600)
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 en原创 2017-06-11 19:08:55 · 271 阅读 · 0 评论 -
HDU - 5727(57/600)
SJX has 2*N magic gems. NN of them have Yin energy inside while others have Yang energy. SJX wants to make a necklace with these magic gems for his beloved BHB. To avoid making the necklace too Yin or原创 2017-07-22 15:15:19 · 448 阅读 · 0 评论