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

What the hell is going on? ??? Problem 1101
Posted by Nikolay Marinov 7 Dec 2002 02:26
I have only this declarated variabels and my program got Memory Limit
Exceeded ????

struct TPoint
    {
      int x, y;
      int num;
    };

  struct opz
    {
      char wh;
      int data;
    };

  int n, m, k;
  TPoint F[110];
  TPoint R[110];
  char *cmd;
  opz O[100];
  int obr = -1;
  short REG[30];
  int S[100];
  int sbr;

 where cmd = new char [300];

 ??? I don't understand how my program use more than 1000 K ??? I
have the same problems with 1100 when I use struct i got ML when use
two arrays

  int X[...];
  int Y[...];

i accepted it why >>>> ???