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

VALERO can i take [1..125001] of int64? [4] // Problem 1306. Sequence Median 17 Oct 2005 20:49
please, tell me, what type of array i must take?
i took MLE on this : array[1..125000] of int64;
Dmitry 'Diman_YES' Kovalioff Don't use int64, longword is just enough (-) [2] // Problem 1306. Sequence Median 17 Oct 2005 23:17
But I get memlimit on 7th test , but used longword
Unfortunatelly you can't conserve all elements simultanionsly. Try to use ideas of heap sort or use priority_queue<int> if you are C++ programmer :-).
cutedog Re: can i take [1..125001] of int64? // Problem 1306. Sequence Median 17 Jul 2008 14:26
sorry you can't.