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

Общий форум

С# and Memory
Послано Andrew Hoffmann aka SKYDOS [Vladimir SU] 3 авг 2010 21:14
Is it possible to solve some problems using less then 1 MB in C# ?
I tried 1010 problem to solve, but less then 941 KB I cannot do... :( it's bad...
May be there are some tricks to lower memory consumption ?

Thx.

PS
If code neded - just say, I will show.. maybe some ideas will appear.

Edited by author 03.08.2010 21:17
Re: С# and Memory
Послано Alexander Samal 5 авг 2010 02:45
You can run garbage collector manually:

  GC.Collect();

It helped me to solve problem 1269 where memory is very limited. But don't do so too often - this trick eats much time!
Re: С# and Memory
Послано Andrew Hoffmann aka SKYDOS [Vladimir SU] 5 авг 2010 11:07
Thanks for idea!

Is it possible to solve problem @Stacks@ using this trick?
Have you tried?
Re: С# and Memory
Послано ppk1515 6 авг 2010 08:38
give me a look.