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

Java solution exists!
Posted by Fyodor Menshikov 5 Dec 2008 03:08
I've solved this problem in Java!

http://acm.timus.ru/status.aspx?space=1&num=1220&author=23793

FAQ (http://acm.timus.ru/help.aspx?topic=java&locale=en) says "Here is the list of the problems which are not guaranteed to be solvable in Java: 1220, 1275, 1306."

Now 1220 may be removed from this list.

Russian version of the FAQ slightly more close to the truth. It says that problems except 1220, 1275 and 1306 may be solved in Java _without_significant_difficulties_. And this statement is true. 1220 _may_ be solved in Java, but with much more difficulty than in Pascal or C++.
Re: Java solution exists!
Posted by xenium9 29 Mar 2009 15:52
great!

how to C# ?
Re: Java solution exists!
Posted by Fyodor Menshikov 29 Mar 2009 17:29
xenium9 wrote 29 March 2009 15:52
how to C# ?

Your solution 2525637 uses only 300 kb of memory. Probably it does nothing, but 750-300 kb is enough to get AC using right techniques.

The most important is to not create objects. So no strings, only reusable arrays of characters. And probably you are to implement reading and writing classes over byte IO that do not use object creation.
Re: Java solution exists!
Posted by xenium9 30 Mar 2009 08:49
Your solution 2525637 uses only 300 kb of memory. Probably it does nothing.
------------------------
Yes, it's only:
static void Main(){}
but it uses 365KB memory.



The most important is to not create objects. So no strings, only reusable arrays of characters. And probably you are to implement reading and writing classes over byte IO that do not use object creation.
-------------------
i shall try. thank you very much.