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

can i take [1..125001] of int64?
Posted by VALERO 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;
Don't use int64, longword is just enough (-)
Posted by Dmitry 'Diman_YES' Kovalioff 17 Oct 2005 23:17
Re: Don't use int64, longword is just enough (-)
Posted by Dulat_KBTU 20 Feb 2006 13:39
But I get memlimit on 7th test , but used longword
Re: Don't use int64, longword is just enough (-)
Posted by Jabarov_Roman 9 Nov 2006 17:17
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 :-).
Re: can i take [1..125001] of int64?
Posted by cutedog 17 Jul 2008 14:26
sorry you can't.