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 2148. Insane Shot

WA8?
Posted by Zergatul 15 Oct 2020 03:33
I am checking possibility of shot, I am checking edge case (when shot just touches the tank). My geometry calculations use epsilon (also tried to adjust epsilon, didn't help). Tried to output results with 7 decimals. I am using double. What else I could miss?
Re: WA8?
Posted by Kairom `Ekexity 💻 23 Oct 2020 13:36
Are you sure that the size of your epsilon is enough? The angle might be too small. Place the tank and players on opposite sides of the map, and check your solution.

Edited by author 23.10.2020 13:36