#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main()
{
char a[11],b[11];
int i,len1,len2;
len1=strlen(a);
len2=strlen(b);
scanf("%s%s",a,b);
if(len1!=len2)
printf("1\n");
else
{
if(!strcmp(a,b))
printf("2\n");
else
{
for(i=0;i<len1;i++)
{
a[i]=tolower(a[i]);
b[i]=tolower(b[i]);
}
if(!strcmp(a,b))
printf("3\n");
else
printf("4\n");
}
}
return 0;
}
toloewr()函数的作用是将()中的字母转为小写,使用该函数需要头文件<ctype.h>