#include <stdio.h>
int myStrcmp(char s[], char t[]);
int main(void)
{
char s[100];
char t[100];
myStrcmp(s,t);
}
int myStrcmp(char s[], char t[])
{
int i;
for(i=0; s[i]!='\0'; i++);
int j;
for(j=0; t[j]!='\0'; j++);
if(i!=j)
{
return 0;
}
else
{
for(int k=0; s[k]='\0'; k++)
{
if(s[k]!=t[k])
return 0;
}
}
return 1;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbXlTdHJjbXAoY2hhciBzW10sIGNoYXIgdFtdKTsKCgppbnQgbWFpbih2b2lkKQp7CgljaGFyIHNbMTAwXTsKCWNoYXIgdFsxMDBdOwoKCXNjYW5mKCIlcyIscyk7CglzY2FuZigiJXMiLHQpOwoKCW15U3RyY21wKHMsdCk7CgoJcHJpbnRmKCIlZFxuIixteVN0cmNtcChzLHQpKTsKCn0KCgppbnQgbXlTdHJjbXAoY2hhciBzW10sIGNoYXIgdFtdKQp7CglpbnQgaTsKCWZvcihpPTA7IHNbaV0hPSdcMCc7IGkrKyk7CgoJaW50IGo7Cglmb3Ioaj0wOyB0W2pdIT0nXDAnOyBqKyspOwoKCWlmKGkhPWopCnsKCXJldHVybiAwOwoJCQkJfQoKCWVsc2UKewoJZm9yKGludCBrPTA7IHNba109J1wwJzsgaysrKQp7CglpZihzW2tdIT10W2tdKQoJcmV0dXJuIDA7Cn0KCn0KCglyZXR1cm4gMTsKCgp9CgoK