Page 1 of 1

When you make the array size..

Posted: Sun Feb 12, 2006 11:19 am
by tmdrbs6584
When you make the array size make array size big
like
int a[100000];
or
int a[300][300];

Posted: Sun Feb 12, 2006 11:41 am
by misof
I suppose that you are asking about the memory limit. If I recall correctly, the UVa judge uses a fixed 32 MB limit. As long as your array is global, it may be this big. Thus, this should be just fine:

Code: Select all

int myArray[7800000];

int main() {
  myArray[7654321] = 47;
  return 0;
}