
dfs&bfs
Aki_Mutou
Qingdao->Jinan->Tokyo->Osaka
展开
-
POJ1979 Red and Black(dfs求连通块(的个数))
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles. But he can’...原创 2019-02-24 21:44:51 · 143 阅读 · 0 评论 -
POJ3009 Curling 2.0(dfs+剪枝/等待填坑)
本来以为是一道有趣的bfs 点我看题 Description On Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played on an ice game board...转载 2019-02-26 18:41:26 · 152 阅读 · 0 评论