摘要:
splay.....------------------------------------------------------------------------#include#include#include#include#include#define rep( i , n ) for( in... 阅读全文
摘要:
LCT....---------------------------------------------------------------------------------#include#include#include#include#define rep( i , n ) for( int ... 阅读全文
摘要:
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... 阅读全文
摘要:
kpm大神说可以用块状链表写...但是我不会...写了个splay....先离散化 , 然后splay结点加个min维护最小值 , 就可以了...( ps BZOJ 3506 题意一样 , 双倍经验 )-------------------------------------------------... 阅读全文
摘要:
先orz一下clj...我的splay跟着他写的...这道题很普通的splay我调了这么久 T T , 就是因为 null 的值初始化为0 , 结果就挂了...----------------------------------------------------------------------... 阅读全文
摘要:
树链剖分...略麻烦...--------------------------------------------------------------------------------#include#include#include#include#include#define rep( i , ... 阅读全文
摘要:
普通的最短路...dijkstra水过..------------------------------------------------------------------------------#include#include#include#include#include#define rep... 阅读全文
摘要:
直接用STL的的deque就好了...----------------------------------------------------------------------#include#include#include#include#include#define rep( i , n ) ... 阅读全文
摘要:
01背包...-----------------------------------------------------------------------#include#include#include#include#define rep( i , n ) for( int i = 0 ; i ... 阅读全文
摘要:
树形dp..水------------------------------------------------------------------------#include#include#include#include#define rep( i , n ) for( int i = 0 ; i... 阅读全文