← All problemsSign in

Bye Bye

###Difficulty Level - Very Easy Harry Potter was given a string $S$ by Dumbledore to defeat Voldemort. Inorder to defeat him, he needs to replace the last 5 letters of the string by the character 'A'. Help Harry do it. ###Input: - The Line contains a string $S$ ###Output: - Output the new string ###Constraints - $5 \leq |S| \leq 1000$ ###Sample Input: Expelliarmus ###Sample Output:

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