#include <stdio.h>
#include <stdlib.h>
int myStrlen(char s[]){
int i;
for(i=0;s[i]!='\0';i++);
return i;
}
int main(){
int i, size;
char *s;
char t[1024];
size = myStrlen(t);
s
= (char *)malloc(sizeof(char)*(size
+1)); if(s == NULL){
return 0;
}
for(i=0;i<size;i++){
s[i] = t[i];
}
s[size] = '\0';
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBteVN0cmxlbihjaGFyIHNbXSl7CiAgICBpbnQgaTsKICAgIGZvcihpPTA7c1tpXSE9J1wwJztpKyspOwogICAgcmV0dXJuIGk7Cn0KCmludCBtYWluKCl7CiAgICBpbnQgaSwgc2l6ZTsKICAgIGNoYXIgKnM7CiAgICBjaGFyIHRbMTAyNF07CiAgICBzY2FuZigiJXMiLHQpOwogICAgc2l6ZSA9IG15U3RybGVuKHQpOwogICAgcyA9IChjaGFyICopbWFsbG9jKHNpemVvZihjaGFyKSooc2l6ZSsxKSk7CiAgICBpZihzID09IE5VTEwpewogICAgICAgIHByaW50ZigiRVJST1JcbiIpOwogICAgICAgIHJldHVybiAwOwogICAgfQogICAgZm9yKGk9MDtpPHNpemU7aSsrKXsKICAgICAgICBzW2ldID0gdFtpXTsKICAgIH0KICAgIHNbc2l6ZV0gPSAnXDAnOwogICAgcHJpbnRmKCIlZCA6ICVzIixzaXplLHMpOwogICAgZnJlZShzKTsKICAgIHJldHVybiAwOwp9Cg==