ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1220. Stacks

Java solution exists!
Послано Fyodor Menshikov 5 дек 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!
Послано xenium9 29 мар 2009 15:52
great!

how to C# ?
Re: Java solution exists!
Послано Fyodor Menshikov 29 мар 2009 17:29
xenium9 писал(a) 29 марта 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!
Послано xenium9 30 мар 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.