• 个人简介

    错误集

    1. 异或(xorxor)没有分配律!
    2. 一定要注意 ABSABS 函数。特别是你使用了 2147483648-2147483648 或者是 21474836472147483647 这个值的时候,要更加小心。因为有可能你在对他执行操作的时候,对方却越界了。
    3. 线段树写法小建议:建议不要使用 structstruct 来存储单个的线段树变量,除非是必须的。不然的话,在访问这些结构体的时候是需要时间的,然后这些时间累积起来就会导致超时。
    4. -(~x)=x+1,这是一个非常有趣的优化。首先,~x=-(x+1),至于为什么是这样的可以去网上自己搜搜。
  • 通过的题目

  • 最近活动

    This person is lazy and didn't join any contests or homework.
  • 最近编写的题解

    This person is lazy and didn't write any solutions.
  • Stat

  • Rating

题目标签

binary search
2
two pointers
2
*2500
2
data structures
2
bitmasks
2
dp
2
matrices
2
number-theory
1
hashing
1
strings
1
greedy
1
sortings
1
*2100
1
*2800
1
*3000
1