When you make the array size make array size big
like
int a[100000];
or
int a[300][300];
When you make the array size..
Moderator: Board moderators
-
- Learning poster
- Posts: 98
- Joined: Sat Jan 21, 2006 12:45 pm
- Location: Busan,Corea(Republic of)
When you make the array size..
Archaan
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
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;
}