ハミング距離
such that the Hamming distance formula_7.