Trick Shot

From programming_contest
Revision as of 02:22, 7 November 2017 by imported>Kmk21 (Created page with "This problem asks us if it is possible to sink 2 pool balls in a very specific manner giving an invented physics. This problem is purely mathematical. # We can calculate exa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This problem asks us if it is possible to sink 2 pool balls in a very specific manner giving an invented physics.

This problem is purely mathematical.

  1. We can calculate exactly where ball 3 must be struck in order to fall. (hint: colinear with ball 3 and the hole at a distance 2r from the center of ball 3)
  2. we can then calculate where ball 1 must be struck in order to reach the point calculated above in the same manner
  3. We can then calculate where ball 2 must be struck
  4. We can then determine the angle the cue ball must take after striking ball 1 before striking ball 2 (using the points calculated in 2 and 3)
  5. We can then determine the INCOMING angle of the cueball (the reflected business described in the problem)
  6. We can then intersect the line at the angle from 5 with the 'h' line
  7. if the intersection lies within w, it is possible