poj 1125 Stockbroker Grapevine (Floyed)
思路:题目给我们一些边,让我们算出通过哪个点以最快的速度遍历图中每个点。很容易想到floyed。代码:#include#include#includeusing namespace std;int map[105][105];int n , a , b , m;int main(){ while(~scanf("%d" , &n)){ if(
原创
2013-07-14 07:56:39 ·
455 阅读 ·
0 评论