摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5249思路分析:使用queue记录管道中的值并使用treap能够查询第K大的功能查询第floor(m/2)+1大的数值;对于in value操作,将value插入queue中和treap中;对于out操作... 阅读全文
posted @ 2015-06-17 20:28 Leptus 阅读(215) 评论(0) 推荐(0) 编辑