← All problemsSign in

Bob and errands

Given the number of minutes Bob needs to complete an errand during the list of commercial breaks in a programme. Print the number of commercial breaks during which bob should ideally run errand such that he should not miss show. If not satisfied print ‘Invalid input’. ### Input - 1st line is errand duration time,E - 2nd line no.of breaks ,N - 3rd line ‘N’ no.of nreaks separated by spaces ### Out

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