本月博客排行
-
第1名
龙儿筝 -
第2名
lerf -
第3名
fantaxy025025 - johnsmith9th
- xiangjie88
- zysnba
年度博客排行
-
第1名
青否云后端云 -
第2名
宏天软件 -
第3名
gashero - wy_19921005
- vipbooks
- benladeng5225
- e_e
- wallimn
- javashop
- ranbuijj
- fantaxy025025
- jickcai
- gengyun12
- zw7534313
- qepwqnp
- 解宜然
- ssydxa219
- zysnba
- sam123456gz
- sichunli_030
- arpenker
- tanling8334
- gaojingsong
- kaizi1992
- xpenxpen
- 龙儿筝
- jh108020
- wiseboyloves
- ganxueyun
- xyuma
- xiangjie88
- wangchen.ily
- Jameslyy
- luxurioust
- lemonhandsome
- mengjichen
- jbosscn
- zxq_2017
- lzyfn123
- nychen2000
- forestqqqq
- wjianwei666
- ajinn
- zhanjia
- Xeden
- hanbaohong
- java-007
- 喧嚣求静
- mwhgJava
- kingwell.leng
最新文章列表
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今天和大家一起去游乐场玩,终于可以坐上梦寐以求的 ...