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 2099. Space Invader

Is it possible to get wrong answer because of rounding numbers?
Posted by roman velichkin 5 Oct 2023 13:50
Vectors calculations uses square roots. Could this lead to not very precise floats and wrong results?

Edited by author 05.10.2023 13:50

Edited by author 05.10.2023 13:50
Re: Is it possible to get wrong answer because of rounding numbers?
In this sort of problems rounding errors could be the source of problems. That's why you shall avoid using float types here. The problem is completely solvable in integers.