摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=4712所谓的hamming distance就是the Hamming distance is equal to the number of ones in a XOR b. For calculating Hamming distance between two strings a and b, they must have equal length.两个长度相同的码字,其相对应的位可能不同,彼此不同位的个数称海明 距离。应该最长也就20为,所以可以先把所有位数组合的结果先打表出来,然后再随机取数进行判断, 阅读全文