上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 49 下一页
摘要: splay.....------------------------------------------------------------------------#include#include#include#include#include#define rep( i , n ) for( in... 阅读全文
posted @ 2015-06-20 15:28 JSZX11556 阅读(349) 评论(0) 推荐(0) 编辑
摘要: LCT....---------------------------------------------------------------------------------#include#include#include#include#define rep( i , n ) for( int ... 阅读全文
posted @ 2015-06-17 21:58 JSZX11556 阅读(202) 评论(0) 推荐(0) 编辑
摘要: n #include#include#include#include#define rep( i , n ) for( int i = 0 ; i S;int main() { freopen( "test.in" , "r" , stdin ); int n; cin >> n; rep( i... 阅读全文
posted @ 2015-06-16 22:03 JSZX11556 阅读(258) 评论(0) 推荐(0) 编辑
摘要: kpm大神说可以用块状链表写...但是我不会...写了个splay....先离散化 , 然后splay结点加个min维护最小值 , 就可以了...( ps BZOJ 3506 题意一样 , 双倍经验 )-------------------------------------------------... 阅读全文
posted @ 2015-06-16 14:37 JSZX11556 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 先orz一下clj...我的splay跟着他写的...这道题很普通的splay我调了这么久 T T , 就是因为 null 的值初始化为0 , 结果就挂了...----------------------------------------------------------------------... 阅读全文
posted @ 2015-06-15 21:56 JSZX11556 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 树链剖分...略麻烦...--------------------------------------------------------------------------------#include#include#include#include#include#define rep( i , ... 阅读全文
posted @ 2015-06-15 14:36 JSZX11556 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 普通的最短路...dijkstra水过..------------------------------------------------------------------------------#include#include#include#include#include#define rep... 阅读全文
posted @ 2015-06-14 22:00 JSZX11556 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 直接用STL的的deque就好了...----------------------------------------------------------------------#include#include#include#include#include#define rep( i , n ) ... 阅读全文
posted @ 2015-06-14 20:46 JSZX11556 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 01背包...-----------------------------------------------------------------------#include#include#include#include#define rep( i , n ) for( int i = 0 ; i ... 阅读全文
posted @ 2015-06-14 20:34 JSZX11556 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 树形dp..水------------------------------------------------------------------------#include#include#include#include#define rep( i , n ) for( int i = 0 ; i... 阅读全文
posted @ 2015-06-14 20:23 JSZX11556 阅读(270) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 49 下一页