Show More
Commit Description:
added test pair assignment, requests new input, downloads input
Commit Description:
added test pair assignment, requests new input, downloads input
References:
File last commit:
Show/Diff file:
Action:
judge/scripts/test/data/add_too_much_memory_dynamic.c
| 19 lines
| 239 B
| text/x-c
| CLexer
|
|
r176 | #include <stdio.h> | ||
#include <stdlib.h> | ||||
int main() | ||||
{ | ||||
int a,b; | ||||
char *huge_array; | ||||
scanf("%d %d",&a,&b); | ||||
huge_array = (char *)malloc(5000000); | ||||
if(huge_array==NULL) | ||||
printf("NO!"); | ||||
else | ||||
printf("%d\n",a+b); | ||||
return 0; | ||||
} | ||||