← All problemsSign in

The Fun Game

Sachit is bored playing games on computer so he decided to play a new game for fun. He asks his friends for an idea. After a moment Vaibhav described to friends the following simple game. They will be divided into n teams, indexed 1 through n. Each one of them will chooses a lowercase letter, one of 'a' - 'z'. Of course, some them can choose the same letter. Then, Sachit, as a judge, shows a str

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