#include <stdio.h>
#include <ctype.h> // 文字の変換に使用
int fuzzyStrcmp(char s[], char t[]) {
int i = 0;
// 文字列を大文字小文字区別せずに比較
while (s[i] != '\0' && t[i] != '\0') {
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;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxjdHlwZS5oPiAgLy8g5paH5a2X44Gu5aSJ5o+b44Gr5L2/55SoCgppbnQgZnV6enlTdHJjbXAoY2hhciBzW10sIGNoYXIgdFtdKSB7CiAgICBpbnQgaSA9IDA7CgogICAgLy8g5paH5a2X5YiX44KS5aSn5paH5a2X5bCP5paH5a2X5Yy65Yil44Gb44Ga44Gr5q+U6LyDCiAgICB3aGlsZSAoc1tpXSAhPSAnXDAnICYmIHRbaV0gIT0gJ1wwJykgewogICAgICAgIGlmICh0b2xvd2VyKHNbaV0pICE9IHRvbG93ZXIodFtpXSkpIHsKICAgICAgICAgICAgcmV0dXJuIDA7ICAvLyDnlbDjgarjgovmloflrZfjgYzopovjgaTjgYvjgaPjgZ/loLTlkIgKICAgICAgICB9CiAgICAgICAgaSsrOwogICAgfQoKICAgIC8vIOaWh+Wtl+WIl+OBrumVt+OBleOBjOeVsOOBquOCi+WgtOWQiOOCgueVsOOBquOCi+OBqOOBv+OBquOBmQogICAgaWYgKHNbaV0gIT0gJ1wwJyB8fCB0W2ldICE9ICdcMCcpIHsKICAgICAgICByZXR1cm4gMDsKICAgIH0KCiAgICByZXR1cm4gMTsgIC8vIOOBmeOBueOBpuS4gOiHtAp9CgppbnQgbWFpbigpIHsKICAgIGludCBhbnM7CiAgICBjaGFyIHNbMTAwXTsKICAgIGNoYXIgdFsxMDBdOwogICAgc2NhbmYoIiVzICVzIiwgcywgdCk7CiAgICBwcmludGYoIiVzID0gJXMgLT4gIiwgcywgdCk7CiAgICBhbnMgPSBmdXp6eVN0cmNtcChzLCB0KTsKICAgIHByaW50ZigiJWRcbiIsIGFucyk7CiAgICByZXR1cm4gMDsKfQo=