ハミング距離
The function codice_1, implemented in Python 2.3+, computes the Hamming distance between