Sum Query
CodeChefOpen on judge ↗
On the occasion of women's day. In girls hostel there is an event so, warden decided to collect money from every room of the hostel there are $N$ rooms in the hostel and the money contributed by ith room will be $a[i]$. Warden is very busy these days because of maitree sports event of the university. So, She asked you to collect the money from every room of the hostel but she is not interested in
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