mirror of
https://github.com/QingdaoU/Judger.git
synced 2025-01-04 11:21:42 +00:00
18 lines
281 B
C
18 lines
281 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
int main()
|
|
{
|
|
int size = 256 * 1024 * 1024;
|
|
int *a = NULL;
|
|
a = (int *)malloc(size);
|
|
if (a == NULL) {
|
|
return 1;
|
|
}
|
|
else {
|
|
memset(a, 1, size);
|
|
free(a);
|
|
return 0;
|
|
}
|
|
} |