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 1306. Sequence Median

Why memory limit on test 7?
Posted by Tabledott 5 Mar 2006 14:19
Here is my code:
[code deleted]

Edited by moderator 06.03.2006 18:43
Because your program uses more than 1000 Kb (+)
Posted by Dmitry 'Diman_YES' Kovalioff 5 Mar 2006 14:46
array [1..250000] of longword -> 250000*4 = 1000000 bytes + some memory (about 150 Kb) for compiler purposes.

Your approach to store all the input data is wrong.
Re: Because your program uses more than 1000 Kb (+)
Posted by Tabledott 5 Mar 2006 16:16
Well., 10x for the fast reply but I can't think of anything better. I thought it's unavoidable using such a big array. Any Hints :)

Edited by author 05.03.2006 16:20