Sky Watching
CodeChefOpen on judge ↗
Rocky loves watching the stars of the night sky. He has a telescope with a range length $L$ whose stand is damaged in such a way that you can’t move the telescope up, down, left or right. It can point only to a fixed point in the sky. Rocky likes to watch as many stars as possible. So, he got an idea and made a slider for the base of the stand. But the slider was too slippery, so you have to fix t
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