Skiing
Time limit2sMemory limit128 MB
Starting at (0,0) with fixed downhill speed and bounded lateral acceleration, choose the longest reachable target sequence with smallest indices on ties.
- Level
Medium7 of 10
- Topics
- Dynamic programming, Math, Sorting
- Solved
- No attempts yet
Problem
Skier starts at with constant downhill. Lateral acceleration is bounded by . Visit the longest possible sequence of targets.
Input
, , , then target coordinates.
Output
Target indices visited, lexicographically smallest among maximum length. Or Cannot visit any targets.