巷北

orz 各位神犇

bzoj 3065 带插入区间K小值

bzoj 4025: 二分图

巷北 posted @ 2015年5月15日 13:32 in bzoj , 878 阅读

对时间分治,用启发式并查集维护一下,时间复杂度O(mlog^2n),然而并查集常数极小,所以跑的比lct的O(mlogn)还快。

lct见http://wuzuofan.is-programmer.com/posts/89928.html 或者 http://c-sunshine.logdown.com

 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter