# include <stdio.h>
int fuzzyStrcmp(char s[], char t[])
{
int i = 0;
while (s[i] != '\0' && t[i] != '\0')
{
char a = s[i];
char b = t[i];
if (a >= 'A' && b <= 'Z')
{
a += 32;
}
if (b >= 'A' && b <= 'Z')
{
b += 32;
}
if (a != b)
{
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;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGZ1enp5U3RyY21wKGNoYXIgc1tdLCBjaGFyIHRbXSkKewoJaW50IGkgPSAwOwogICAgd2hpbGUgKHNbaV0gIT0gJ1wwJyAmJiB0W2ldICE9ICdcMCcpCnsKICAgICAgICBjaGFyIGEgPSBzW2ldOwogICAgICAgIGNoYXIgYiA9IHRbaV07CiAgICAgICAgCiAgICAgICAgaWYgKGEgPj0gJ0EnICYmIGIgPD0gJ1onKQp7CiAgICAgICAgICAgIGEgKz0gMzI7CiAgICAgICAgCQkJCQkJCQl9CiAgICAgICAgaWYgKGIgPj0gJ0EnICYmIGIgPD0gJ1onKQp7CiAgICAgICAgICAgIGIgKz0gMzI7CiAgICAgICAgCQkJCQkJCQkJCX0KICAgICAgICAKICAgICAgICAKICAgICAgICBpZiAoYSAhPSBiKQp7CiAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgIAkJCQkJfQogICAgICAgIGkrKzsKICAgIAkJCQkJCQkJfQogICAgCiAgICBpZiAoc1tpXSAhPSAnXDAnIHx8IHRbaV0gIT0gJ1wwJykKewogICAgICAgIHJldHVybiAwOwogICAgfQogICAgCiAgICByZXR1cm4gMTsgIC8vIOWQjOOBmOaWh+Wtl+WIl+OBruWgtOWQiAp9CgoKLy/jg6HjgqTjg7PplqLmlbDjga/mm7jjgY3mj5vjgYjjgarjgY/jgabjgafjgY3jgb7jgZkgCmludCBtYWluKCl7CiAgICBpbnQgYW5zOwogICAgY2hhciBzWzEwMF07CiAgICBjaGFyIHRbMTAwXTsKICAgIHNjYW5mKCIlcyAlcyIscyx0KTsKICAgIHByaW50ZigiJXMgPSAlcyAtPiAiLHMsdCk7CiAgICBhbnMgPSBmdXp6eVN0cmNtcChzLHQpOwogICAgcHJpbnRmKCIlZFxuIixhbnMpOwogICAgcmV0dXJuIDA7Cn0K