随笔分类 -  图论

摘要:题目:http://acm.hdu.edu.cn/showproblem.php?pid=4522建两个图,分别用dijstra。#include<stdio.h>#include<iostream>#include<string.h>#include<math.h>#include<string>#include<algorithm>#pragma comment(linker, "/STACK:1024000000,1024000000")using namespace std;const int 阅读全文
posted @ 2013-05-28 15:56 Roly Yu 阅读(158) 评论(0) 推荐(0)
摘要:题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1586#include <cstdlib>#include <cstring>#include <cstdio>#include <cmath>#include <algorithm>#include <string>#include <iostream>using namespace std ;const int maxn = 1005;const int inf = 0xffff 阅读全文
posted @ 2013-04-16 21:12 Roly Yu 阅读(235) 评论(0) 推荐(0)