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 1390. Shots at Walls

Any hints? Solved by interval trees?
Posted by Safe Bird 29 Oct 2005 09:19
Re: Any hints? Solved by interval trees?
Posted by Burunduk1 29 Oct 2005 14:22
Yes, use interval trees.
What will be the output for this case:
Posted by Safe Bird 2 Nov 2005 11:07
wall 0 1 1 0
shot 0 1
Infinity or 1?

that will cause a precision error I think
Re: What will be the output for this case:
Posted by Shen Yang 29 Oct 2016 04:05
get Accepted using divide and conquer
No subject
Posted by Orient 8 Mar 2018 20:00
I think raytraycer based on kd-tree (SAH) with ropes is most suitable for this task. Time (just sequential number) can be saved in primitives and min of times in nodes to speedup calculations.