Reflections
CodeChefOpen on judge ↗
Problem text... Suppose we have a convex polygon of n vertices. One of the edges has a light emitting point which emits a ray of light in a known direction. The edges of the polygon are made of mirrors. As a result, when a ray of light falls upon an edge, it is reflected to another direction according to the laws of reflection. So after a certain number of reflections we can evaluate the point hit
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start