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 1885. Passenger Comfort

test
Posted by Radi Muhammad Reza 30 Oct 2011 09:34
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
So....., how get this answer? Explain, please. =)
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
Answers for tests IgorKoval(from Pskov)
125.00000 500.000000
134.146341 500.0000000
115.384615 500.0000000
0.000000 500.000000
16.129032 500.000000
0.0000000 476.190476
Re: test
Posted by david 26 Jan 2013 22:31


Edited by author 26.01.2013 22:32