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

How Bad is Test#5! I use heap(half memory),But Wrong Answer!
Posted by ural_xjbell 21 Apr 2004 15:23
Here is my program:

[deleted :-)]

Edited by moderator 22.04.2004 00:37
I did not debuged your program, but (+)
Posted by Oberon (Yura Znovyak) 21 Apr 2004 17:07
- Do not use real, it takes 6 bytes and not very accurate.
+ Use long word
- Do not do (a[1]+x)/2 for longword's since with 2 long words their sum can be bigger that longword; 4*10^9 + 4*10^9.
Hope this will help.

Edited by author 21.04.2004 20:10