← All problemsSign in

Name Score

The first line contains an integer n, that is, the number of names the user wants to input. The second line contains n space separated names (of variable lengths). The third line of input contains an integer k (kkth name on the list) in the input list. Sample Input 5 Ram Shyam Raman Sonam Shreya 5 Sample Output 380 Explanation Shreya is the 5th name on the list, and, 'S' is the 19th cha

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