摘要: 原题链接:http://www.lydsy.com/JudgeOnline/problem.php?id=1798线段树区间更新: 1. 区间同同时加上一个数 2. 区间同时乘以一个数 1 #include 2 #include 3 #include 4 #include 5 #define lc ... 阅读全文
posted @ 2015-05-25 21:26 GadyPu 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=3172并查集的运用。。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using std::map; 7 using std::str... 阅读全文
posted @ 2015-05-25 21:00 GadyPu 阅读(121) 评论(0) 推荐(0) 编辑