# include <stdio.h>
int fuzzyStrcmp(char s[], char t[]){
//関数の中だけを書き換えてください
//同じとき1を返す,異なるとき0を返す
//大文字に統一
for(int i=0;s[i] != '\0';i++){
if('a' <= s[i] && s[i] <= 'z'){
s[i] = s[i] - 32;
}
}
//大文字に統一
for(int i=0;t[i] != '\0';i++){
if('a' <= t[i] && t[i] <= 'z'){
t[i] = t[i] - 32;
}
}
//比較
for(int i=0;s[i]==t[i];i++){
if(s[i]=='\0'){
return 1;
}
}
return 0;
}
//メイン関数は書き換えなくてできます
int main(){
int ans;
char s[100];
char t[100];
ans = fuzzyStrcmp(s,t);
return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGZ1enp5U3RyY21wKGNoYXIgc1tdLCBjaGFyIHRbXSl7CgkvL+mWouaVsOOBruS4reOBoOOBkeOCkuabuOOBjeaPm+OBiOOBpuOBj+OBoOOBleOBhAoJLy/lkIzjgZjjgajjgY3vvJHjgpLov5TjgZnvvIznlbDjgarjgovjgajjgY3vvJDjgpLov5TjgZkKLy/lpKfmloflrZfjgavntbHkuIAJCglmb3IoaW50IGk9MDtzW2ldICE9ICdcMCc7aSsrKXsKICAgICAgICBpZignYScgPD0gc1tpXSAmJiBzW2ldIDw9ICd6Jyl7CiAgICAgICAgICAgIHNbaV0gPSBzW2ldIC0gMzI7CiAgICAgICAgfQoJfQovL+Wkp+aWh+Wtl+OBq+e1seS4gAoJZm9yKGludCBpPTA7dFtpXSAhPSAnXDAnO2krKyl7CiAgICAgICAgaWYoJ2EnIDw9IHRbaV0gJiYgdFtpXSA8PSAneicpewogICAgICAgICAgICB0W2ldID0gdFtpXSAtIDMyOwogICAgICAgIH0KCX0KLy/mr5TovIMJCQogICAgZm9yKGludCBpPTA7c1tpXT09dFtpXTtpKyspewogICAgICAgIGlmKHNbaV09PSdcMCcpewogICAgICAgIAlyZXR1cm4gMTsKICAgICAgICB9CiAgICB9CiAgICByZXR1cm4gMDsKfQoKLy/jg6HjgqTjg7PplqLmlbDjga/mm7jjgY3mj5vjgYjjgarjgY/jgabjgafjgY3jgb7jgZkgCmludCBtYWluKCl7CiAgICBpbnQgYW5zOwogICAgY2hhciBzWzEwMF07CiAgICBjaGFyIHRbMTAwXTsKICAgIHNjYW5mKCIlcyAlcyIscyx0KTsKICAgIHByaW50ZigiJXMgPSAlcyAtPiAiLHMsdCk7CiAgICBhbnMgPSBmdXp6eVN0cmNtcChzLHQpOwogICAgcHJpbnRmKCIlZFxuIixhbnMpOwogICAgcmV0dXJuIDA7Cn0K