#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
char gabarito[85], respostas[85];
scanf("%s", gabarito);
scanf("%s", respostas);
int acertos = 0;
for(int i=0; i<n; i++){
if (gabarito[i]==respostas[i]){
acertos++;
}
}
printf("%d\n", acertos);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: