2013年10月24日

poj1125 Stockbroker Grapevine Floyd

摘要: 题目链接:http://poj.org/problem?id=1125主要是读懂题意然后就很简单了floyd算法的应用代码: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 #define maxn 110 7... 阅读全文

posted @ 2013-10-24 19:23 GyyZyp 阅读(110) 评论(0) 推荐(0) 编辑

poj3159 Candies SPFA

摘要: 题目链接:http://poj.org/problem?id=3159题目很容易理解就是简单的SPFA算法应用刚开始用STL里的队列超时了,自己写了个栈,果断过,看来有时候栈还是快啊。。。。代码: 1 #include 2 #include 3 #include 4 #include 5 #defi... 阅读全文

posted @ 2013-10-24 18:10 GyyZyp 阅读(124) 评论(0) 推荐(0) 编辑

poj Layout 差分约束+SPFA

摘要: 题目链接:http://poj.org/problem?id=3169很好的差分约束入门题目,自己刚看时学呢代码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 #defi... 阅读全文

posted @ 2013-10-24 17:09 GyyZyp 阅读(167) 评论(0) 推荐(0) 编辑

导航