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 1600. Airport

partisan (Andrey Korotkov) What can be lower bound for speed? For example, can it be 1e-10 :) ? [4] // Problem 1600. Airport 16 Sep 2008 00:49
I've got AC with 1e-8
partisan (Andrey Korotkov) Re: What can be lower bound for speed? For example, can it be 1e-10 :) ? [2] // Problem 1600. Airport 18 Sep 2008 20:07
It's your epsilon for compare or minimum possible speed for object? (Sorry for stupid question if I'm wrong in my suppose)
partisan (Andrey Korotkov) Re: What can be lower bound for speed? For example, can it be 1e-10 :) ? [1] // Problem 1600. Airport 18 Sep 2008 21:10
Problem isn't in this. I had crash #8 (Invalid floating point operation) and just find the problem and got AC.
This is 'eps' for comparisons (mostly against zero). I don't care about speed, I just find minimum non-negative time. Non-negative means 't > -eps'. Also, right before output I write 'if(t<0) t=0' to protect from -0.000 output. Same thing takes place before 'sqrt' evaluation.