← All problemsSign in

Novels

Apoorva loves reading novels. Each day, she records how many novels she has completed. Given the number of novels she reads each day, determine the total number of novels she has finished by the end of the Nth day. ### Input The first line contains two integers D and N, where D is the total number of days and N is the target day. The second line contains D integers A1, A2, ..., AD, where Ai rep

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