// Type your code here, or load an example.
#include <stdlib.h>
char * string_test(int arg);
int main()
{
char * test_vals[1000] = {0};
int i = 0;
for (i; i<1000; i++){
test_vals[i] = string_test(i);
}
for(i=0; i<1000; i++){
}
}
char * string_test(int arg){
char * retval
= (char*)malloc(sizeof(char*)*arg
); return retval;
}
Ly8gVHlwZSB5b3VyIGNvZGUgaGVyZSwgb3IgbG9hZCBhbiBleGFtcGxlLgojaW5jbHVkZSA8c3RkbGliLmg+CgpjaGFyICogc3RyaW5nX3Rlc3QoaW50IGFyZyk7CgppbnQgbWFpbigpCnsKICAgIGNoYXIgKiB0ZXN0X3ZhbHNbMTAwMF0gPSB7MH07CiAgICBpbnQgaSA9IDA7CiAgICBmb3IgKGk7IGk8MTAwMDsgaSsrKXsKICAgICAgICB0ZXN0X3ZhbHNbaV0gPSBzdHJpbmdfdGVzdChpKTsKICAgIH0KICAgIAogICAgZm9yKGk9MDsgaTwxMDAwOyBpKyspewogICAgICAgIGZyZWUodGVzdF92YWxzW2ldKTsKICAgIH0KfQoKY2hhciAqIHN0cmluZ190ZXN0KGludCBhcmcpewogICAgY2hhciAqIHJldHZhbCA9IChjaGFyKiltYWxsb2Moc2l6ZW9mKGNoYXIqKSphcmcpOwogICAgcmV0dXJuIHJldHZhbDsKfQ==