Peter and his Test
CodeChefOpen on judge ↗
Peter Parker, famously known as Spider-Man, is also a high school student. He has a very important mission to go on but before that he has to solve the last question of his test which is The value of an alphabet is its position in the alphabetical order, i.e. , $A=1, B=2, ..., Z=26$. Given a sum $S$, there can be one or many palindromes whose sum of the value of the alphabets in it is exactly $S
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