摘要: dfs+prune AC代码: #include <vector> #include <cstdio> #include <algorithm> #include <cmath> #include <numeric> using namespace std; class sol{ public: v 阅读全文
posted @ 2016-03-11 23:15 aldorado 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 堆排序STL algorithm里有建堆make_heap,出栈 pop_heap(将堆首元素移至容器尾部),入栈push_heap,以及堆排序sort_heap AC代码 #include <vector> #include <cstdio> #include <string> #include 阅读全文
posted @ 2016-03-11 11:46 aldorado 阅读(185) 评论(0) 推荐(0) 编辑