随笔分类 - BFS
摘要:https://www.luogu.org/problemnew/show/P1434 题目
阅读全文
摘要:https://blog.csdn.net/guhaiteng/article/details/52730373 参考题解 http://codeforces.com/contest/723/problem/D 原题目 BFS: 第一次先把湖找出来,并记录湖的大小,然后存在结构体node中,最后so
阅读全文
摘要:https://www.luogu.org/problemnew/show/P1141 这题全部输入后 把答案存起来 ,再把答案一次性输出 和边输入边输出 前者时间花的更少。 用stack来打表吧,针对同一个n 同一个mp地图,把所有的点分别能到几个地方 都算一遍,(能到达一个相同地方的不同点 ,一
阅读全文
摘要:https://www.luogu.org/problemnew/show/P1443 模板BFS......
阅读全文
摘要:https://www.luogu.org/problemnew/show/P1162 这种方法是通过 查外面没有被1包围的0 。。
阅读全文
摘要:Prime Path POJ - 3126 附上筛素数方法 https://www.cnblogs.com/grubbyskyer/p/3852421.html
阅读全文
摘要:很短的 BFS 队列 HDU_2717_Catch That Cow
阅读全文