ENG  RUS Timus Online Judge
Online Judge
Problems
Authors
Online contests
Site news
Webboard
Problem set
Submit solution
Judge status
Guide
Register
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

## Discussion of Problem 1885. Passenger Comfort

test
10000 500 50 40
best of luck
Re: test
Posted by IgorKoval(from Pskov) 30 Oct 2011 23:40
What is answer on this test? =)
Re: test
Posted by bsu.mmf.team 31 Oct 2011 02:18
0 250
Re: test
Posted by IgorKoval(from Pskov) 31 Oct 2011 03:34
Re: test
Posted by bsu.mmf.team 31 Oct 2011 13:01
If the plane flies at speed 40, it will reach required height in 250 seconds, i.e. it will do it in time (less, than 500), and there are no time when it exceeded the speed limit (when passengers have their ears blocked). So, mintime = 0. Maxtime is 250, because the plane can fly all the way at speed = 40 + EPS :)

Edited by author 31.10.2011 13:02
Re: test
Posted by IgorKoval(from Pskov) 31 Oct 2011 18:08
Thank you very mutch!!! AC! =)
And just for fun tests:
Test #1
h  == 10000 &&
t2 ==   500 &&
Vm ==    50 &&
x  ==    10
Test #2
h  == 10000 &&
t2 == 500 &&
Vm ==    50  &&
x  ==    9
Test #3
h  == 10000 &&
t2 == 500  &&
Vm ==    50   &&
x  ==    11
Test #4
h  == 10000 &&
t2 == 500  &&
Vm ==    50  &&
x  == 20
Test #5
h  == 10000  &&
t2 == 500  &&
Vm ==    50 &&
x  == 19
Test #6
h  == 10000  &&
t2 == 500  &&
Vm ==    50 &&
x  == 21
ans: 0.000000000000000 476.190476190476200
Re: test
Posted by GERDA 31 Oct 2011 18:26
What does the EPS mean? How much it must be?
Re: test
Posted by bsu.mmf.team 1 Nov 2011 20:49
EPS is very small positive number.
For example, you may assume EPS = 10^-2011
Re: test
Posted by GERDA 3 Nov 2011 09:26
Thank you very much! But I didn't think that it must be SO small.
Re: test
Posted by Kartik Andalam 9 Apr 2012 04:33
Hey there,
Is it possible for you to explain the last one.
why is it 476..19....?

Thanks
Re: test
Posted by alp 3 Jun 2012 19:56