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

is array of 3000*3000 of boolean huge ???
Posted by Saber 19 Mar 2003 21:40
i get MLE but i use onlye these in my Var part :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const maxn=3000;
var
  a,b       : array[0..maxn+1,0..maxn+1] of boolean;
  n,k1,k2,m : integer;
  k3,k4     : integer;
  c         : byte;
  ans       : array[1..4] of integer;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
and i didnt use any procedure nor function ...
its about 1249 can u send me ur Var part.
SABER
ssf_digi@hotmail.com
oh i get it, thanx aidin
Posted by Saber 19 Mar 2003 22:36
> i get MLE but i use onlye these in my Var part :
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> const maxn=3000;
> var
>   a,b       : array[0..maxn+1,0..maxn+1] of boolean;
>   n,k1,k2,m : integer;
>   k3,k4     : integer;
>   c         : byte;
>   ans       : array[1..4] of integer;
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> and i didnt use any procedure nor function ...
> its about 1249 can u send me ur Var part.
> SABER
> ssf_digi@hotmail.com
you are allways welcomed (+)
Posted by Locomotive 20 Mar 2003 00:51
> > i get MLE but i use onlye these in my Var part :
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > const maxn=3000;
> > var
> >   a,b       : array[0..maxn+1,0..maxn+1] of boolean;
> >   n,k1,k2,m : integer;
> >   k3,k4     : integer;
> >   c         : byte;
> >   ans       : array[1..4] of integer;
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > and i didnt use any procedure nor function ...
> > its about 1249 can u send me ur Var part.
> > SABER
> > ssf_digi@hotmail.com

Just
Var
  a,b : array[1..maxn] of boolean;