← All problemsSign in

The Unforgotten Letters

Chef has decided to move on in life and forget his last girlfriend. He has decided to get rid of all the love letters which he had received from his girlfriend by burning them. But he can burn the letters only when he is alone at home. Chef has a total of N love letters which he had received from his girlfriend and he is alone at home for S hours. Each love letter depending on the length and pape

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