La La Land
CodeChefOpen on judge ↗
Chef and Pratik are two renowned musicians of La La Land. They decided to show everyone all the notes they could play and challenged anyone who could defeat them. They sat in the city auditorium with their instruments and started playing one after the other. Chef, being senior went 1st and played his composition $C$. Pratik went second and played his composition $P$. Their composition contained
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