Submission

Status:

-xxxxxxxxxxxxxxxxxxx

Subtask/Task Score:

0/100

Score: 0

User: agnes_chan

Problemset: ผลบวก (กลาง)

Language: python

Time: 0.011 second

Submitted On: 2026-05-08 13:31:08

sc , N = [0] , int(input())
for i in map(int,input().split()): sc += [sc[-1]+i]
N = int(input())
for i , j in [map(int,input().split()) for k in range(N)]:
    print(sc[j]-sc[i-1])