ch_g

ECUST_ACMer —— ch_g
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年8月16日

摘要: 伸展树真是一种犀利的数据结构阿。一开始用数组模拟建树,先WA再TLE,代码很挫。然后问曾哥要了他的伸展树代码。略加改动和优化后就成了自己的模板。/*题目:SuperMemo题目来源:POJ 3580题目内容或思路: 伸展树 模板题做题日期:2011.8.16*/#include <iostream>#include <cstdio>#include <string>#include <cstring>#include <string>#include <queue>#include <cmath>#includ 阅读全文

posted @ 2011-08-16 19:59 ch_g 阅读(765) 评论(0) 推荐(0) 编辑