War communication
CodeChefOpen on judge ↗
A spy was captured by the enemy country and he needs to let his country know that he has been captured. He can secretly send messages but they will be read by the enemy, preventing sensitive information to get through. The spy was taught an encoding technique back when he was in training in his homeland and he decides to use it to encrypt his messages to be unrecognizable to the enemy. A special
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