Advitiya
Toofan wanted to write the string `"ADVITIYA"`, but accidentally wrote the 8-letter string $S$ instead. He wants to correct his mistake with the minimum number of steps. In one step, Toofan can choose an index $i$ ($1 \leq i \leq N$), and change $S_i$ to the next letter in the alphabet. That is, change $\text{A} \to \text{B}, \text{B} \to \text{C}, \text{C} \to \text{D}$, and so on. The alp
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