mirror of
https://github.com/QingdaoU/Judger.git
synced 2025-01-16 01:13:25 +00:00
21 lines
340 B
C
21 lines
340 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <sys/time.h>
|
|
#include <sys/resource.h>
|
|
int main()
|
|
{
|
|
int *a = NULL;
|
|
// 150M
|
|
int v = 150000000;
|
|
a = (int *)malloc(v);
|
|
if(a == NULL){
|
|
printf("error\n");
|
|
}
|
|
else {
|
|
memset(a, 0, v);
|
|
printf("success\n");
|
|
}
|
|
return 15;
|
|
}
|