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

Общий форум

PROBLEMS WITH THE MEMORY ON THE EVALUATION COMPUTER!!!!!
Послано PUNGARU MARIUS 23 окт 2004 23:27
i tried to solve problem 1002 using pascal but everytime
i submitted my solution the evaluation sistem return me
then same error ,memory limit excedeed,but when i first send my program then Evaluation System said that i used 3121 KB and when i send after a few minutes the same source code then ES said that i used 4485KB.what should i do becaus i'm sure that my program doesn't use all then memory(after my calculations it should use about 1,1MB).
Thanks in advance!
You shouldn't pay much attention to the amount of memory stated by the judge system (+)
Послано Michael_Rybak 24 окт 2004 04:18
First off, be very careful with using dynamic structures. Secondly, keep in mind that your pascal program needs 373 KB of memory to be run, so you have only 627 KB for your solution. That is not too much, but this problem *can* be solved even with such lack of memory.
 As for the judge system - if it says "Memory Limit", don't hope that it'll show you the actual size of memory your program used - it may have tried to use much more, but after exceeding some limit was detected by the judge system, it cut your program's run.
 P.S. Remember, that String type is a dynamic structure, and storing a 5-char string in a String variable can occupy about 20 bytes, or even more.

Edited by author 24.10.2004 04:18

Edited by author 24.10.2004 04:20