← All problemsSign in

Razo and his mother

$Razo$ is a brilliant student in maths. One day his mother asked him about his rank in his class, but he didn't like the school's system of ranking so he refused to give the answer. Help Razo's mother to find the rank of his son. School has strange way of ranking the students. They rank students according to $lexicographical$ order of their surnames. Class contains $N+1$ students including R

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