#P470G. Hamming Distance
Hamming Distance
No submission language available for this problem.
Description
Hamming distance between two strings of equal length is the number of positions at which the corresponding symbols are different. You are given two strings; calculate the distance between them.
The input consists of two lines. Each line contains a string of characters 'A'-'Z' between 1 and 100 characters, inclusive. The strings have equal length.
Output Hamming distance between the strings.
Input
The input consists of two lines. Each line contains a string of characters 'A'-'Z' between 1 and 100 characters, inclusive. The strings have equal length.
Output
Output Hamming distance between the strings.
Samples
CODECHEF
TOPCODER
6
HAMMING
DISTANC
6