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 1220. Stacks

Why MLE? I have statick structures (+)
Posted by Tbilisi SU: Andrew Lutsenko 11 Oct 2006 20:42
var stacks:array[1..1000] of string;
    n,i,j,t1,t2,l:longint;
    err:integer;
    st:string;

That's all. Why MLE10? In every 4 bytes of a string i write integer and on 'pop' recover it. So the sum of the lengths of the strings can't be more than 4*100000 bytes. Plus some bytes for compiler is approximately 700 kb. Why it takes more than 800?????
Re: Why MLE? I have statick structures (+)
Posted by Midnight_Kitty 18 Oct 2006 16:33
string is a dynamic array, Pascal can allocate memory for it with some reserve. I think its your problem