Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2020/ii/paper-2/12i/iii/solution

Adding the all-one codeword is a bijection from to itself, and it replaces every bit by its complement. It therefore sends weight to weight , proving
The code has one word of weight zero and, since its minimum Hamming distance is three, no words of weight one or two. Combining this with part (i) gives

New to topics? Read the docs here!