Strings in Character Land
CodeChefOpen on judge ↗
$You$ $cannot$ $exist$ $forever$ $in$ $a$ $place$ $where$ $you$ $don't$ $belong$. Character Land is a strange place where only Characters can live.Whenever a String $S$ of length $N$ enters Character Land,it slowly reduces in length,until it becomes a character itself. Every Character in Character Land has a value. $A -> 0$ , $B -> 1$ , $C -> 2$ and so on. The reduction of Strings occur in a pecu
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