獲取x第n位的值:(x>>n) & 1
設置x第n位的值爲1:x = x || 1<<n
The Hamming distance between two integers is the number of positions at which the corresponding bits are different.