Number of contestant
CodeChefOpen on judge ↗
There are $n$ contest in an event named [Technovation2k18](http://technovation2k18.org). The contests are numbered from $1,2,3….n $. Each contest has $a[i]$ number of contestants in it. Given $q$ queries, you need to tell how many contestant will be in between contest $i$ and contest $r$ both inclusive (include all the contestant of contest $l$,$l+1$,$l+2$,….. upto $r$) . ###Input: - First line c
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