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

Common Board

1093 "dart" pisses me off
Posted by Jivko Ganev 21 May 2001 04:23
I think its quite simple but I keep getting W.A. .
I solve it by using the fact that any point Q satisfies
(Q-C).N = 0, I substitute M with Q and get quadratic
equation except in the case when Nz = 0. I solve it and
verify for the roots if the distance is < r.
I verified my computations at least 3 times. Here are a, b,
c for the quad equation:
- 5 * nz,
vx * nx + vy * ny + vz * nz,
nx * (sx - cx) + ny * (sy - cy) + nz * (sz - cz).
I hope I didn't f#$!ed up the computations again, because I
usualy do it.
Please help!
Re: 1093
Posted by LuoJi 21 May 2001 17:32
If the dart is on the plane at the beginning ,
u will also print it.
Thanks a lot man (-)
Posted by Jivko Ganev 21 May 2001 20:47
> If the dart is on the plane at the beginning ,
> u will also print it.