The Nandhini Cipher
CodeChefOpen on judge ↗
When Vanthiyathevan comes to visit Nandhini, he sees her trying to hide a secret letter in a locker. He suspects that it is a letter from the Pandiyas. When Nandhini leaves the room, Vanthiyathevan sneaks in and finds a set of $2N$ keys in front of the locker, with numbers written on each key. He suddenly remembers that one must shuffle the keys $K$ times to find out the correct order of keys to o
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