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 1215. Exactness of Projectile Hit

What's the output if during calculation we get for example 5.000003?
Posted by Igor Dex 27 Jun 2004 01:01
What's the correct answer if during calculation we get the diameter for example 5.000003?

5.000 or 5.001?

Another example 14.999001?

Can all vertices be on the same line?

The smallest distance from the center to a polygon (for the outside center) must be approximately 1E-7.
Will such accuracy be enough?
Re: What's the output if during calculation we get for example 5.000003?
Posted by Andrew Yu 16 Jul 2004 22:11
What's the correct answer if during calculation we get the diameter for example 5.000003?

5.000 or 5.001? // My AC program is 5.000

Another example 14.999001? // 14.999

Can all vertices be on the same line? // No

The smallest distance from the center to a polygon (for the outside center) must be approximately 1E-7.
Will such accuracy be enough? //Maybe it is enough,but i think 1E-8 is better