摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2544 1 #include 2 #include 3 #include 4 #define maxn 500 5 using namespace std; 6 const int inf=1<<28; 7 ... 阅读全文
posted @ 2014-04-21 22:11 null1019 阅读(154) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2066这道题用floyd做的时候要稍微优化,不优化就会超时。 1 #include 2 #include 3 #include 4 #include 5 #define maxn 1001 6 using ... 阅读全文
posted @ 2014-04-21 21:58 null1019 阅读(128) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1116欧拉通路和欧拉回路 1 #include 2 #include 3 #include 4 #define maxn 1000 5 using namespace std; 6 7 int f[maxn... 阅读全文
posted @ 2014-04-21 21:18 null1019 阅读(151) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/336/problem/B 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int main() 8 { 9 int m,r;1... 阅读全文
posted @ 2014-04-21 11:08 null1019 阅读(185) 评论(0) 推荐(0) 编辑