2013年11月14日

[宠物收养所] ( Splay树 )

摘要: From http://www.lydsy.com/JudgeOnline/problem.php?id=1208/************************************************************** Problem: 1208 User: leezy Language: C++ Result: Accepted Time:192 ms Memory:2840 kb****************************************************************/ #include #in... 阅读全文

posted @ 2013-11-14 23:01 leezyli 阅读(254) 评论(0) 推荐(0) 编辑

2013年11月11日

营业额统计 ( Splay树 )

摘要: From http://www.lydsy.com/JudgeOnline/problem.php?id=1588 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const static int N = 40001; 8 int v[N],l[N],r[N],p[N]; 9 int cnt, root; 10 void init(){ cnt = 0; root = 0; v[0]=l[0]=r[0]=p[0]=0;} 11 int alloc_node(int Val)... 阅读全文

posted @ 2013-11-11 21:56 leezyli 阅读(302) 评论(0) 推荐(0) 编辑

导航