摘要: 这题简直太神了,我才知道网络流还可以这样做!这题想了近一个小时构图,没搞出来。。最后看了BYvoid大神的题解搞得。。http://www.byvoid.com/blog/noi-2008-employee/无限仰慕!View Code 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cstdlib> 5 #include <algorithm> 6 7 #define N 2000 8 #define M 200000 9 #def 阅读全文
posted @ 2013-01-15 13:36 proverbs 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 时间复杂度(渐近时间复杂度的严格定义,NP问题,时间复杂度的分析方法,主定理)排序算法(平方排序算法的应用,Shell排序,快速排序,归并排序,时间复杂度下界,三种线性时间排序,外部排序)数论(整除,集合论,关系,素数,进位制,辗转相除,扩展的辗转相除,同余运算,解线性同余方程,中国剩余定理)指针(链表,搜索判重,邻接表,开散列,二叉树的表示,多叉树的表示)按位运算(and,or,xor,shl,shr,一些应用)图论(图论模型的建立,平面图,欧拉公式与五色定理,求强连通分量,求割点和桥,欧拉回路,AOV问题,AOE问题,最小生成树的三种算法,最短路的三种算法,标号法,差分约束系统,验证二分图 阅读全文
posted @ 2013-01-15 10:43 proverbs 阅读(2503) 评论(0) 推荐(0) 编辑
摘要: Splay写的真是抑郁,各种被坑。。。被题坑,被自己坑。一直在调程序。。。Splay模板:View Code 1 #include <iostream> 2 #include <algorithm> 3 #include <cstring> 4 #include <cstdlib> 5 #include <cstdio> 6 7 #define N 170000 8 #define INF 2e9 9 10 using namespace std; 11 12 int son[N][2],fa[N],val[N],sum[N]; 13 阅读全文
posted @ 2013-01-15 10:29 proverbs 阅读(2825) 评论(0) 推荐(0) 编辑