ACM__DFS
文章平均质量分 82
wust_zwl
学不死,就往死里学。
展开
-
迷宫问题(深搜+回溯)
简单的DFS加回朔,搞清楚它的递归的过程,就很容易解了原创 2017-05-17 15:24:48 · 5915 阅读 · 0 评论 -
POJ 1014 Dividing (多重背包问题+递归)【模板】
Marsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. This would be easy if all the marbles had the same value, because then they could just split the collection原创 2017-08-14 19:52:15 · 606 阅读 · 0 评论 -
ZOJ 1047 Image Perimeters(dfs+技巧)
Technicians in a pathology lab analyze digitized images of slides. Objects on a slide are selected for analysis by a mouse click on the object. The perimeter of the boundary of an object is one useful measure. Your task is to determine this perimeter for s原创 2017-08-15 19:58:56 · 259 阅读 · 0 评论 -
ZOJ 3805 Machine(搜索+技巧)【树形DP模板】
In a typical assembly line, machines are connected one by one. The first machine's output product will be the second machine's raw material. To simplify the problem, we put all machines into a two-dimension shelf. Every machine occupied exactly one grid an原创 2017-09-01 10:55:07 · 277 阅读 · 0 评论 -
codeforces 327D. Block Tower(高级DFS)
After too much playing on paper, Iahub has switched to computer games. The game he plays is called "Block Towers". It is played in a rectangular grid with n rows and m columns (it contains n × m cells). The goal of the game is to build your own city. Some原创 2017-10-29 23:18:13 · 348 阅读 · 0 评论 -
【Ural 1033】 Labyrinth.(迷宫)
Administration of the labyrinth has decided to start a new season with new wallpapers. For this purpose they need a program to calculate the surface area of the walls inside the labyrinth. This job is just for you!The labyrinth is represented by a matrix原创 2017-12-24 21:46:19 · 254 阅读 · 0 评论 -
CodeForces - 194C Cutting Figure (dfs)
You've gotten an n × m sheet of squared paper. Some of its squares are painted. Let's mark the set of all painted squares as A. Set A is connected. Your task is to find the minimum number of squares原创 2018-01-07 21:37:41 · 303 阅读 · 0 评论