本月博客排行
-
第1名
龙儿筝 -
第2名
johnsmith9th -
第3名
wy_19921005 - zysnba
- sgqt
- lemonhandsome
年度博客排行
-
第1名
宏天软件 -
第2名
青否云后端云 -
第3名
龙儿筝 - gashero
- wallimn
- vipbooks
- benladeng5225
- wy_19921005
- fantaxy025025
- qepwqnp
- e_e
- 解宜然
- zysnba
- ssydxa219
- sam123456gz
- javashop
- arpenker
- tanling8334
- kaizi1992
- xpenxpen
- gaojingsong
- wiseboyloves
- xiangjie88
- ranbuijj
- ganxueyun
- sichunli_030
- xyuma
- wangchen.ily
- jh108020
- lemonhandsome
- zxq_2017
- jbosscn
- Xeden
- luxurioust
- lzyfn123
- zhanjia
- forestqqqq
- johnsmith9th
- ajinn
- nychen2000
- wjianwei666
- hanbaohong
- daizj
- 喧嚣求静
- silverend
- mwhgJava
- kingwell.leng
- lchb139128
- lich0079
- kristy_yy
最新文章列表
POJ 3686 The Windy's KM算法
这题的建图实在是太神了
假设某个机器处理了k个玩具,那么对于这些玩具,有两种时间,一种是真正处理的时间,一种是等待的时间,等待的时间就是之前所有处理的玩具的时间,
假设这k个玩具真正用在加工的时间分为a1,a2,a3...ak, 那么每个玩具实际的时间是加工的时间+等待时间,分别为
a1, a1+a2, a1+a2+a3.......a1+a2+...ak
求和之后变为 ...
POJ 2400 KM算法 最小权匹配 回溯输出所有最优匹配方案
很蛋疼的一题
首先输入就很蛋疼, 据网上的神牛们纷纷说题目的矩阵给反了。然后按反着来还真给过了
KM的话 由于是 n与n的匹配,所以直接取负求KM毫无压力
但是如果两边点数不等,据说会有问题
#include <iostream>
#include <cstdio>
#include <cstring>
#include < ...
【二分图+最大匹配+有难度】poj 2226 Muddy Fields
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org/ ...
【二分图+最小路径覆盖+建图难度】北大 poj 1548 Robots
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org/pr ...
【二分图+技巧性】北大 poj 3692 Kindergarten
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org/ ...
【二分图+最大匹配+解题思路】北大 poj 2239 Selecting Courses
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org/ ...
【二分图+最大匹配】北大 poj 2536 Gopher II
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://poj.org/ ...
【二分图+有难度】杭电 hdu 1281 棋盘游戏
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://ac ...
【二分图+简单题】杭电 hdu 1151 Air Raid
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://ac ...
【二分图+最小覆盖+简单题】杭电 hdu 1054 Strategic Game
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://ac ...
杭电 hdu 1498 50 years, 50 colors (二分图,最大匹配)
/* THE PROGRAM IS MADE BY PYY */
/*----------------------------------------------------------------------------//
Copyright (c) 2011 panyanyany All rights reserved.
URL : http://acm.hdu.edu.cn ...
杭电 hdu 1150 Machine Schedule
附上大牛的地址,这篇文章写得很好,代码有高亮,有注释,一目了然……
http://www.cnblogs.com/183zyz/archive/2011/03/21/1990598.html
/* THE PROGRAM IS MADE BY PYY */
/*------------------------------------------------------------------ ...
hdu 1151 Air Raid(最小路径覆盖)
Air Raid
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1313 Accepted Submission(s): 831
Problem Description
Consider a town where all the ...
hdu 1054 Strategic Game(最小顶点覆盖)
Strategic Game
Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1760 Accepted Submission(s): 742
Problem Description
Bob enjoys playing co ...
hdu 1281 棋盘游戏(二分图求关键点)
棋盘游戏
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 852 Accepted Submission(s): 492
Problem Description
小希和Gardon在玩一个游戏:对一个N*M的棋盘,在格子里放尽 ...
hdu 1068 Girls and Boys(二分图求最大独立集合)
Girls and Boys
Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3260 Accepted Submission(s): 1405
Problem Description
the second y ...
hdu 1045 Fire Net(二分图 or dfs)
Fire Net
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2427 Accepted Submission(s): 1380
Problem Description
Suppose that we have a squa ...
hdu 2063 过山车(我的第一个二分图)
过山车
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3105 Accepted Submission(s): 1298
Problem Description
RPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的 ...