#include <stdio.h>
int any(char s1[], char s2[]){
int i, j;
i = j = 0;
while (s1[i] != '\0'){
while (s2[j] != '\0'){
if (s1[i] == s2[j++])
return i;
}
i++;
}
return -1;
}
int main(void) {
printf("%d", any
("cba", "ac")); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgoKCiAgICBpbnQgYW55KGNoYXIgczFbXSwgY2hhciBzMltdKXsKICAgIGludCBpLCBqOwogICAgaSA9IGogPSAwOwogICAgd2hpbGUgKHMxW2ldICE9ICdcMCcpewogICAgd2hpbGUgKHMyW2pdICE9ICdcMCcpewogICAgaWYgKHMxW2ldID09IHMyW2orK10pCiAgICByZXR1cm4gaTsKICAgIH0KICAgIGkrKzsKICAgIH0KICAgIHJldHVybiAtMTsKICAgIH0KCgoKaW50IG1haW4odm9pZCkgewoJcHJpbnRmKCIlZCIsIGFueSgiY2JhIiwgImFjIikpOwoJcmV0dXJuIDA7Cn0K