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 help plz!!
Posted by Tolstobrov_Anatoliy[Ivanovo SPU] 8 Jun 2005 19:23
Qhy memory limit exceed


const coll=100000;
var
m:array[1..coll]of longint;
t:array[1..coll]of integer;
k,s,j,i,n:longint;
ch:string[4];
a:integer;
begin
.......

I not understend!!!!

I think 600kb+some bytes!!!
My program eat 813kb!!
Re: Why MLE help plz!!
Posted by Ich 8 Jun 2005 22:45
Try to change application type:
{$APPTYPE CONSOLE}
because console application uses much less amount of memory
sizeof(integer) = 4
Posted by Vladimir Yakovlev (USU) 9 Jun 2005 00:09
Why sizeof(integer) = 4 ?????
Posted by Нищий Наглец 12 Jun 2005 02:09
integer=longint ???????

size of word=4  ????