Coach and Students
CodeChefOpen on judge ↗
# Coach and Students The playground in St. Mary School looks like a rectangle of size n × m of the square blocks of same size. The coach wants the ground to be layered by fine mud for a special game. For this he assigns this work to some of his students. Students are initially present in k+1 blocks(k + 1 ≤ n·m). Those are blocks where the coach positions them initially. Moreover positions of k of
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