# include <stdio.h>
int fuzzyStrcmp(char s[], char t[])
{
int i = 0;
while (s[i] != '\0' && t[i] != '\0')
{
char c1 = s[i];
char c2 = t[i];
if (c1 >= 'A' && c1 <= 'Z')
{
c1 += 32;
}
if (c2 >= 'A' && c2 <= 'Z')
{
c2 += 32;
}
if (c1 != c2)
{
return 0;
}
i++;
}
if (s[i] != '\0' || t[i] != '\0')
{
return 0;
}
return 1; // 同じ文字列の場合
}
//メイン関数は書き換えなくてできます
int main(){
int ans;
char s[100];
char t[100];
ans = fuzzyStrcmp(s,t);
return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGZ1enp5U3RyY21wKGNoYXIgc1tdLCBjaGFyIHRbXSkKewoJaW50IGkgPSAwOwogICAgd2hpbGUgKHNbaV0gIT0gJ1wwJyAmJiB0W2ldICE9ICdcMCcpCnsKICAgICAgICBjaGFyIGMxID0gc1tpXTsKICAgICAgICBjaGFyIGMyID0gdFtpXTsKICAgICAgICAKICAgICAgICBpZiAoYzEgPj0gJ0EnICYmIGMxIDw9ICdaJykKewogICAgICAgICAgICBjMSArPSAzMjsKICAgICAgICAJCQkJCQkJCX0KICAgICAgICBpZiAoYzIgPj0gJ0EnICYmIGMyIDw9ICdaJykKewogICAgICAgICAgICBjMiArPSAzMjsKICAgICAgICAJCQkJCQkJCQkJfQogICAgICAgIAogICAgICAgIAogICAgICAgIGlmIChjMSAhPSBjMikKewogICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICAJCQkJCX0KICAgICAgICBpKys7CiAgICAJCQkJCQkJCX0KICAgIAogICAgaWYgKHNbaV0gIT0gJ1wwJyB8fCB0W2ldICE9ICdcMCcpCnsKICAgICAgICByZXR1cm4gMDsKICAgIH0KICAgIAogICAgcmV0dXJuIDE7ICAvLyDlkIzjgZjmloflrZfliJfjga7loLTlkIgKfQoKCi8v44Oh44Kk44Oz6Zai5pWw44Gv5pu444GN5o+b44GI44Gq44GP44Gm44Gn44GN44G+44GZIAppbnQgbWFpbigpewogICAgaW50IGFuczsKICAgIGNoYXIgc1sxMDBdOwogICAgY2hhciB0WzEwMF07CiAgICBzY2FuZigiJXMgJXMiLHMsdCk7CiAgICBwcmludGYoIiVzID0gJXMgLT4gIixzLHQpOwogICAgYW5zID0gZnV6enlTdHJjbXAocyx0KTsKICAgIHByaW50ZigiJWRcbiIsYW5zKTsKICAgIHJldHVybiAwOwp9Cg==