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 1147. Shaping Regions

Why MLE??
Posted by cloudygooose 4 Aug 2009 15:10
This is my "var"

const
  big=3000;
var
  i,j,k,l,m,n,l1,l2,now,sum,res,last:longint;
  f:array[1..big,1..2000]of integer;
  ans:array[1..2500]of longint;
  a:array[1..2000]of record
                       x1,y1,x2,y2,col:longint;
                     end;
  x:array[1..2,0..2000]of longint;
  mi:array[1..2,0..10000]of longint;

I think I only use about 12MB memory,but the system told me that I got MLE on test 1.
Why?Why?
Re: Why MLE??
Posted by OpenGL 4 Aug 2009 15:57
sizeof f=24 mb
Re: Why MLE??
Posted by cloudygooose 4 Aug 2009 19:38
Yeah,I should use smallint