摘要:
poj 3026 Borg Maze//poj 3026 Borg Maze//bfs+MST(广搜+最小生成树)//这题的英文实在看不懂,百度了别人的解题报告才知道意思的,所以要多多使用英语来慢慢提高才行//这题的意思是要通过'S'去找'A',找到一个'A'就把它同化掉帮忙去同化别的'A'//其实... 阅读全文
摘要:
poj 2485 Highways//poj 2485 Highways//MST(minimum spanning tree)//here is want to get the longest road#include #include #define N 505#define INF 1 dis... 阅读全文
摘要:
poj 1789 Truck History//poj 1789 Truck History//MST(minimum spanning tree)//It's mean is: there is several type of truck and every truck//is marked by... 阅读全文
摘要:
poj 1094 Sorting It All Out 拓扑排序//poj 1094 Sorting It All Out 拓扑排序//这题要先判断是否有环的存在(可以用floyd算法看有没有能到自己的结点来判断,//也可以把度数为0的点一个一个排除,直到没有结点为止,若还有结点没排除,且//没有... 阅读全文