← All problemsSign in

Username

Chef wants to choose a new Username for Codechef. As a bunch of geeks, Chef uses an algorithm to choose a username. Chef wants his username to have exactly n characters. Name should only consist of uppercase and lowercase letters 'O'.The i-th letter of the name should be 'O' (uppercase) if i is a member of Fibonacci sequence, and 'o' (lowercase) otherwise. The letters in the name are numbered f

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