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

check test №5
Posted by VDYteam 29 Mar 2004 16:54
Re: check test №5
Posted by Dinu Adrian Florin 1 Apr 2004 16:09
Pos: n=0?
How can you solve it so?
Re: check test №5
Posted by Vladimir Yakovlev (USU) 1 Apr 2004 19:51
Test #5 is wonderful! Read problem statement more attentively.
Re: check test №5
Posted by Gigzzz(gigz@inbox.ru) 1 Apr 2004 20:12
try this:
2
4000000000 4000000001
:)
Re: check test №5
Posted by tbtbtb91 1 Apr 2004 21:00
 I have the same problem...
 But I give the correct answer on your test???
 Is there any trick?
Re: check test №5
Posted by TESTEST 3 Apr 2004 21:19
Use INT64.
Re: check test №5
Posted by buggzy (Ilya Teterin - USU) 4 Apr 2004 00:35
I got AC using such code: double res=double(a+b)/2.0, where a and b are unsigned long.
Re: check test №5
Posted by tbtbtb91 5 Apr 2004 10:22
Yes....maybe overflow..