题目描述
blablabla
样例
#include<iostream>
#include<cstring>
using namespace std;
const int N = 110;
int main()
{
string s1, s2;
int sum = 0;
cin >> s1 >> s2;
for (int i = 0; i < s1.size() - 1; i++)
{
if (s1[i] != s2[i])
{
sum++;
if (s1[i] == '*')
s1[i] = 'o';
else
s1[i] = '*';
if (s1[i+1] == 'o')
s1[i+1] = '*';
else
s1[i+1] = 'o';
}
}
cout <<sum;
return 0;
}