USACO hamming.