#include<stdio.h>
#include<algorithm>
#include<queue>
#include<string.h>
#include<ctype.h>
#include<set>
#include<math.h>
#include<iostream>
using namespace std;
char s1[1010];
char s2[1010];
int main()
{
scanf("%s", s1);
scanf("%s", s2);
int count = 0;
for(int i=0;s1[i]!='\0';i++)
{
if(s1[i]!=s2[i])
{
if (s1[i + 1] != '\0')
{
s1[i+1] = s1[i+1] == '*' ? 'o' : '*';
count++;
//printf("%s\n", s1);
}
}
}
printf("%d\n", count);
}
翻硬币
最新推荐文章于 2020-06-03 06:56:58 发布