Tiki Taka
*This problem has subtasks.* $N$ football players stand in a circle, uniformly separated. The *distance* between two players is the minimum number of players between them in either the clockwise or anticlockwise direction, plus $1$. That is, the distance between players $i$ and $j$ is $d(i, j) = \min(|i-j|, N-|i-j|)$. As part of their passing drill, these players must complete **exactly** $
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