#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+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBteVN0cmxlbihjaGFyIHNbXSl7CiAgICBpbnQgaTsKICAgIGZvcihpPTA7c1tpXSE9J1wwJztpKyspOwogICAgcHJpbnRmKCIlZCIsaSk7CiAgICByZXR1cm4gaTsKfQoKaW50IG1haW4oKXsKICAgIGludCBpLCBzaXplOwogICAgY2hhciAqczsKICAgIGNoYXIgdFsxMDI0XTsKICAgIHNjYW5mKCIlcyIsdCk7CiAgICBzaXplID0gbXlTdHJsZW4odCk7CiAgICBzID0gKGNoYXIgKiltYWxsb2Moc2l6ZW9mKGNoYXIpKihzaXplKzEpKTsKICAgIGlmKHMgPT0gTlVMTCl7CiAgICAgICAgcHJpbnRmKCJFUlJPUlxuIik7CiAgICAgICAgcmV0dXJuIDA7CiAgICB9CiAgICBmb3IoaT0wO2k8c2l6ZTtpKyspewogICAgICAgIHNbaV0gPSB0W2ldOwogICAgfQogICAgc1tzaXplXSA9ICdcMCc7CiAgICBwcmludGYoIiVkIDogJXMiLHNpemUscyk7CiAgICBmcmVlKHMpOwogICAgcmV0dXJuIDA7Cn0K