#include <stdio.h>
int fuzzyStrcmp(char s[], char t[]) {
for(int i = 0; s[i] != '\0' && t[i] != '\0'; i++) {
// 大文字小文字の差を無視して比較
if ((s[i] != t[i]) && (s[i] != t[i] - 32) && (s[i] != t[i] + 32)) {
return 0; // 一致しない場合
}
}
return 1; // 両方の文字列が一致
}
int main() {
int ans;
char s[100];
char t[100];
ans = fuzzyStrcmp(s, t);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgZnV6enlTdHJjbXAoY2hhciBzW10sIGNoYXIgdFtdKSB7CiAgICBmb3IoaW50IGkgPSAwOyBzW2ldICE9ICdcMCcgJiYgdFtpXSAhPSAnXDAnOyBpKyspIHsKICAgICAgICAvLyDlpKfmloflrZflsI/mloflrZfjga7lt67jgpLnhKHoppbjgZfjgabmr5TovIMKICAgICAgICBpZiAoKHNbaV0gIT0gdFtpXSkgJiYgKHNbaV0gIT0gdFtpXSAtIDMyKSAmJiAoc1tpXSAhPSB0W2ldICsgMzIpKSB7CiAgICAgICAgICAgIHJldHVybiAwOyAgLy8g5LiA6Ie044GX44Gq44GE5aC05ZCICiAgICAgICAgfQogICAgfQogICAgcmV0dXJuIDE7ICAvLyDkuKHmlrnjga7mloflrZfliJfjgYzkuIDoh7QKfQoKaW50IG1haW4oKSB7CiAgICBpbnQgYW5zOwogICAgY2hhciBzWzEwMF07CiAgICBjaGFyIHRbMTAwXTsKICAgIHNjYW5mKCIlcyAlcyIsIHMsIHQpOwogICAgcHJpbnRmKCIlcyA9ICVzIC0+ICIsIHMsIHQpOwogICAgYW5zID0gZnV6enlTdHJjbXAocywgdCk7CiAgICBwcmludGYoIiVkXG4iLCBhbnMpOwogICAgcmV0dXJuIDA7Cn0K