Judger/test.c

15 lines
236 B
C
Raw Normal View History

2016-01-12 11:22:18 +00:00
int main() {
2016-01-12 11:10:22 +00:00
int *a = NULL;
// 150M
int v = 150000000;
2016-01-12 11:22:18 +00:00
a = (int *) malloc(v);
if (a == NULL) {
2016-01-12 11:10:22 +00:00
printf("error\n");
}
else {
memset(a, 0, v);
printf("success\n");
}
return 15;
}