← All problemsSign in

To Do List

It’s 10:30 pm and Khushi is trying to make a to-do list for the next day. There are $N$ tasks where each task requires $H$ hours to complete. Considering she takes $X$ hours in completing her mundane tasks, determines whether she will be able to finish all the tasks the other day. ###Input: - The first line of input contains two integers $N, X$ - The second line of input contains $N$ integers $h

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