摘要: 此题可以用STL的multiset解决,也可以手打一棵伸展树(Splay)来求前驱与后驱。使用multiset:#include#include#include#includeusing namespace std;typedef long long LL;multiset se;/*LL abs(... 阅读全文
posted @ 2014-08-13 16:58 好地方bug 阅读(128) 评论(0) 推荐(0) 编辑