# include <stdio.h>
int fuzzyStrcmp(char s[], char t[]){
int i = 0;
while (s[i] != '\0' || t[i] != '\0') {
char s_char = s[i];
char t_char = t[i];
// 大文字を小文字に変換
if (s_char >= 'A' && s_char <= 'Z') {
s_char = s_char - ('A' - 'a');
}
if (t_char >= 'A' && t_char <= 'Z') {
t_char = t_char - ('A' - 'a');
}
// 変換後の文字が異なれば0を返す
if (s_char != t_char) {
return 0;
}
i++;
}
return 1;
}
//メイン関数は書き換えなくてできます
int main(){
int ans;
char s[100];
char t[100];
ans = fuzzyStrcmp(s,t);
return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGZ1enp5U3RyY21wKGNoYXIgc1tdLCBjaGFyIHRbXSl7CgkgICAgaW50IGkgPSAwOwogICAgd2hpbGUgKHNbaV0gIT0gJ1wwJyB8fCB0W2ldICE9ICdcMCcpIHsKICAgICAgICBjaGFyIHNfY2hhciA9IHNbaV07CiAgICAgICAgY2hhciB0X2NoYXIgPSB0W2ldOwoKICAgICAgICAvLyDlpKfmloflrZfjgpLlsI/mloflrZfjgavlpInmj5sKICAgICAgICBpZiAoc19jaGFyID49ICdBJyAmJiBzX2NoYXIgPD0gJ1onKSB7CiAgICAgICAgICAgIHNfY2hhciA9IHNfY2hhciAtICgnQScgLSAnYScpOwogICAgICAgIH0KICAgICAgICBpZiAodF9jaGFyID49ICdBJyAmJiB0X2NoYXIgPD0gJ1onKSB7CiAgICAgICAgICAgIHRfY2hhciA9IHRfY2hhciAtICgnQScgLSAnYScpOwogICAgICAgIH0KCiAgICAgICAgLy8g5aSJ5o+b5b6M44Gu5paH5a2X44GM55Ww44Gq44KM44GwMOOCkui/lOOBmQogICAgICAgIGlmIChzX2NoYXIgIT0gdF9jaGFyKSB7CiAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgIH0KICAgICAgICBpKys7CiAgICB9CiAgICByZXR1cm4gMTsKfQoKLy/jg6HjgqTjg7PplqLmlbDjga/mm7jjgY3mj5vjgYjjgarjgY/jgabjgafjgY3jgb7jgZkgCmludCBtYWluKCl7CiAgICBpbnQgYW5zOwogICAgY2hhciBzWzEwMF07CiAgICBjaGFyIHRbMTAwXTsKICAgIHNjYW5mKCIlcyAlcyIscyx0KTsKICAgIHByaW50ZigiJXMgPSAlcyAtPiAiLHMsdCk7CiAgICBhbnMgPSBmdXp6eVN0cmNtcChzLHQpOwogICAgcHJpbnRmKCIlZFxuIixhbnMpOwogICAgcmV0dXJuIDA7Cn0K