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

Memory Limit Exceeded
Posted by Aleksei Zobnin 26 Oct 2002 18:18
Explain me please, how to solve this problem without Memory Limit
Exceeded!
Re: Memory Limit Exceeded
Posted by Song Chao (ECUST Mutistar) 2 Nov 2002 07:28
use the link stack link that:
typedef
  struct link
  {
     long d[10];
     next *link;
   }LINK;

instead of the structure of one data with one pointer, and you will
not get Memory Limit exceeded.



> Explain me please, how to solve this problem without Memory Limit
> Exceeded!
Sorry, something wrong.
Posted by Song Chao (ECUST Mutistar) 17 Feb 2003 17:01
 typedef
   struct link
   {
      long d[10];
      next *link;    //This line should be 'link *next;'
    }LINK;