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

Common Board

Memory allocation problems...
Posted by Nix! 21 Nov 2000 19:08
I am trying to solve superlong sums.Can you tell me why
does the following code work when the body of the program
is empty, but not when I use the 2 500k arrays with my
program.
I get memory limit exceded. Why I try to use only one meg
and why does that happen only when there is actual program
(it happens at 0.7 secs).I want to know because I don't
have any kind of dynamic allocation.Also why empty pascal
programs start at 200k does that mean that the limit for
pascal solutions is only 800k?

type
  Tarr = array [0..500000 - 1] of byte;

var
  A, B : Tarr;

begin

end.
Re: Memory allocation problems...
Posted by Alex Kharkov (Vinnica) 23 Nov 2000 02:13
Use C++.