ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1048. Superlong Sums

THERE'S SOMETHING WRONG WITH THE MEMORY
Posted by Algorist 7 Sep 2001 23:45
Here are all the variables I use in my program
Var A,B : Byte;
    I,N : Longint;
    SUM : Array[1..1000000]of Byte;

And the limit is 1000K. Why do I get "Memory Limit
Exceeded"?????? Is the limit 10^6 Bytes?
Re: THERE'S SOMETHING WRONG WITH THE MEMORY
Posted by Pete Lupherenko 14 Oct 2001 15:35
> Here are all the variables I use in my program
> Var A,B : Byte;
>     I,N : Longint;
>     SUM : Array[1..1000000]of Byte;
>
> And the limit is 1000K. Why do I get "Memory Limit
> Exceeded"?????? Is the limit 10^6 Bytes?
No. It's really 1000K. The real problem is not to use 1MB
of memory. This solution exists.