← All problemsSign in

Correlative Stones

Peter catches all the fruits that were falling from the helicopter using web spin and now he is going home. While walking he saw stones along the paths. All the stones are in a line. A set of stones is defined as correlative to some integer $K$ if the absolute difference between positions of any two stones in the set is a multiple of $K$. Peter has been provided with all the data like the position

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start