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

It is as easy as that! I like this problem.
Posted by Sergey Baskakov, Raphail and Denis 19 Mar 2005 03:45
It is rather easy to solve it in Pascal! To my mind. Just take a look at the result: Memory Used 608 K.
http://acm.timus.ru/status.aspx?space=1&pos=789168
I was using an O(N) algorithm, where N stands for "the total number of stack operations" in input file. But I tried to save as much memory as possible. I seem to have managed to do it (:

rafailka.