摘要:
heavy light decomposition & segment tree problem which need lots of detail Last night I reinstalled my manjaro linux and it hasn't installed any app w 阅读全文
摘要:
meet in the middle模板题。。。 复杂度太大了,我们就要想想能不能折半,折半后的复杂度如果刚好能过的话就是折半了。。。 这道题要做的就是预处理出所有的$a_i+b_j$,然后用一个表来存下来。 然后就可以再枚举所有的$c_i+d_j$,看看是否有等于$ (a_i+b_j)$的,如果有 阅读全文