← All problemsSign in

Sucho and his Students

Sucho and his students went out to the field to play football. During the match, an ice cream guy arrives. Now Sucho wants his students to form a line to avoid chaos. But being a caring teacher, he wants his students to form the line with the least possible moves. All his students are scattered around the field and their position is given by a pair (x, y) of integer coordinates. Students can move

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