码迷,mamicode.com
首页 >  
搜索关键字:poj3041 asteroids    ( 134个结果
Poj 3041 Asteroids
Asteroids Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 25270 Accepted: 13635 Description Bessie wants to navigate her spaceship through ...
分类:其他好文   时间:2018-05-12 19:26:30    阅读次数:188
bzoj 1741: [Usaco2005 nov]Asteroids 穿越小行星群【最大点覆盖】
二分图最大点覆盖模型,因为对于一个点(x,y)显然只要选x或者y就好了,于是连边,跑最大匹配=最大点覆盖(不会证) cpp include include using namespace std; const int N=10005,inf=1e9; int n,m,h[N],cnt,con,lk[ ...
分类:其他好文   时间:2018-05-08 21:01:24    阅读次数:159
POJ #3041 Asteroids 3041 二分图最小覆盖 最大匹配 匈牙利算法
Description Bessie wants to navigate her spaceship through a dangerous asteroid field in the shape of an N x N grid (1 <= N <= 500). The grid contains ...
分类:编程语言   时间:2018-04-15 11:40:52    阅读次数:194
POJ - 2226 Muddy Fields
题意: 给出一个图, * 代表泥地, . 代表草地。用尽量少的木板盖住泥地,木板可以盖住任意长度的行或列,木板可以重叠但是不能盖住草地。求最少的木板数量。 题解: 这道题有点像POJ3041的变形。在那道题之上把连着的行或列编上号,相连即可。 #include <iostream> #include ...
分类:其他好文   时间:2018-04-02 23:49:32    阅读次数:172
POJ 3041 Asteroids (二分图最小点覆盖集)
Asteroids Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 24789 Accepted: 13439 Description Bessie wants to navigate her spaceship through ...
分类:其他好文   时间:2018-03-11 19:14:23    阅读次数:176
POJ3041 Asteroids(二分图最小点覆盖)
Description Bessie wants to navigate her spaceship through a dangerous asteroid field in the shape of an N x N grid (1 <= N <= 500). The grid contains ...
分类:其他好文   时间:2018-02-12 00:24:57    阅读次数:210
poj3041 Asteroids
二分图。对于每个点,将他的 x 与 y 连一条边,求最小点覆盖 二分图最小点覆盖等于最大匹配 include include include using namespace std; int n, k, hea[505], cnt, lnk[1005], ans, uu, vv; bool vis[ ...
分类:其他好文   时间:2018-01-19 11:42:11    阅读次数:131
[LeetCode] Asteroid Collision 行星碰撞
We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign r ...
分类:其他好文   时间:2017-12-14 03:56:29    阅读次数:172
poj-3041-Asteroids
poj-3041-Asteroids Asteroids Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 24115 Accepted: 13066 Description Bessie wants to navigate her ...
分类:其他好文   时间:2017-12-04 22:26:01    阅读次数:217
735. Asteroid Collision
We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign r ...
分类:其他好文   时间:2017-12-01 18:35:54    阅读次数:123
134条   上一页 1 2 3 4 5 ... 14 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!