非常easy的一道题
#include <iostream>
using namespace std;
string s1, s2;
int main()
{
int ans = 0;
cin >> s1 >> s2;
for (int i = 0; i < s1.size(); i ++ )
{
if (s1[i] != s2[i])
{
ans ++;
if (s1[i] == '*') s1[i] = 'o';
else s1[i] = '*';
if (s2[i+1] == '*') s2[i+1] = 'o';
else s2[i+1] = '*';
}
}
printf("%d", ans);
return 0;
}