Hamming Distance
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The Hamming distance between two strings and of equal length is the number of positions where the strings differ.
You are given bit strings, each of length and your task is to calculate the minimum Hamming distance between two strings.
Input
The first line has two integers and : the number of bit strings and their length.
Then there are lines each consisting of one bit string of length .
Output
Print the minimum Hamming distance between two strings.
Examples
Input #1
Answer #1
Submissions 78
Acceptance rate 12%