Very Simple Question Returns
CodeChefOpen on judge ↗
Hogwarts, a school for magic, has N students. It is organizing a magic competition in which a ball is given to every student . A distinct number is written on each ball which is between 1 to N and there are N holes in the wall far away from them and on each hole a single number is written from 1 to N. By their magic they have to put their balls into these holes.It is guaranteed that if any student
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