← All problemsSign in

Chef and Alice

One day Chef and Alice tried a new way to make their messages encrypted. When they had to write something, firstly Chef wrote the message vertically in a matrix of *$N$* Columns. For example when they had to write "helloalicehowareyou" Chef wrote it like... h a h e e l o y l i w o l c a u o e r a If all the letters of the sentence were not sufficient to form a matrix they included

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start