摘要: http://codeforces.com/contest/318/problem/C 1 #include 2 #include 3 #include 4 using namespace std; 5 long long j; 6 long long x,y,m; 7 int main() ... 阅读全文
posted @ 2014-04-15 21:48 null1019 阅读(118) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1879这道题可以把已修建的道路的费用置为0,然后用prim和kruskal都可以求出。 1 #include 2 #include 3 #include 4 #define maxn 20000 5 usin... 阅读全文
posted @ 2014-04-15 20:32 null1019 阅读(157) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1875 1 #include 2 #include 3 #include 4 #include 5 #define maxn 1001 6 using namespace std; 7 const int ... 阅读全文
posted @ 2014-04-15 19:31 null1019 阅读(158) 评论(0) 推荐(0) 编辑