模拟一javascript --DNA
readline = require('readline');
rl = readline.createInterface({
input:process.stdin,
output:process.stdout,
})
rl.on('line',function(line){
var first = line.split(' ')[0];
var second = line.split(' ')[1];
console.log(num(first,second))
})
function num(first,second){
var n=0;
for(var i=0;i<first.length;i++){
if(matchchar(first[i],second[i])){
}else{
n++;
}
}
return n;
}
function matchchar(char1,char2){
if((char1=="A"&&char2=="T")||(char1=="T"&&char2=="A")||(char1=="C"&&char2=="G")||(char1=="G"&&char2=="C")){
return true;
}else{
return false;
}
}