Reading Nook
CodeChefOpen on judge ↗
So you gained access to the guarded library. Now you invite your friends Leela and Sal over at your reading nook. They both like short stories, but unfortunately, Leela only wants to read Science-Fiction and Sal only likes Romance. Leela has brought A stories and Sal has brought B stories with him., but you want them to read equal number of short stories. You whistle and a room full of books appea
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