The Enigma
CodeChefOpen on judge ↗
“Behind every code is an enigma” Alan is trying to create a machine which can decipher the German messages enciphered by the Enigma machine and he needs your help! The enciphered German message is represented by a string $M$. There are $W$ common German words using which Alan’s machine can decipher this string. However the machine has a power capacity of $P$ and each word utilizes
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