Score : 200 points
You are given three strings A, B and C. Each of these is a string of length N consisting of lowercase English letters.
Our objective is to make all these three strings equal. For that, you can repeatedly perform the following operation:
What is the minimum number of operations required to achieve the objective?
Input is given from Standard Input in the following format:
N A B C
Print the minimum number of operations required.
4 west east wait
3
In this sample, initially A = west
ã€B = east
ã€C = wait
. We can achieve the objective in the minimum number of operations by performing three operations as follows:
a
. A is now wast
.w
. B is now wast
.s
. C is now wast
.9 different different different
0
If A, B and C are already equal in the beginning, the number of operations required is 0.
7 zenkoku touitsu program
13