摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2602 01背包 1 #include <map> 2 #include <cstdio> 3 #include <stack> 4 #include <cmath> 5 #include <queue> 6 #i 阅读全文
posted @ 2019-03-25 23:58 mile-star 阅读(132) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1232 并查集入门,模板题 1 #include <bits/stdc++.h> 2 #define maxn 1005 3 typedef long long ll; 4 using namespace std; 阅读全文
posted @ 2019-03-25 22:34 mile-star 阅读(127) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1166 1 #include <bits/stdc++.h> 2 #define lid id<<1 3 #define rid id<<1|1 4 #define maxn 50005 5 using names 阅读全文
posted @ 2019-03-25 22:30 mile-star 阅读(145) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1010 1 #include <cstdio> 2 #include <cstring> 3 #include <iostream> 4 #include <algorithm> 5 #include <cmath 阅读全文
posted @ 2019-03-25 22:28 mile-star 阅读(170) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1008 1 #include <bits/stdc++.h> 2 #define lid id<<1 3 #define rid id<<1|1 4 #define maxn 50005 5 using names 阅读全文
posted @ 2019-03-25 22:24 mile-star 阅读(161) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1021 1 #include <map> 2 #include <cstdio> 3 #include <stack> 4 #include <cmath> 5 #include <queue> 6 #includ 阅读全文
posted @ 2019-03-25 22:22 mile-star 阅读(108) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1009 1 #include <map> 2 #include <cstdio> 3 #include <stack> 4 #include <cmath> 5 #include <queue> 6 #includ 阅读全文
posted @ 2019-03-25 22:20 mile-star 阅读(145) 评论(0) 推荐(0) 编辑