Problem 2 - Golf Pointers
CodeChefOpen on judge ↗
Professor Plum is trying to teach his friend Professor East to play golf. Professor East can hit the ball along ways (300+ yards), so he likes to “cut dog-legs”, i.e., tee-off directly for the hole even if the fairway turns to the left or right. Professor East being unfamiliar with the course wants Professor Plum to specify a direction to the hole from the tee. Professor Plum would like to speci
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