restructure zeta/** to storage/zeta/**
This commit is contained in:
13
storage/zeta/py/completed/11659.py
Normal file
13
storage/zeta/py/completed/11659.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import sys
|
||||
|
||||
input = sys.stdin.readline
|
||||
|
||||
if __name__ == "__main__":
|
||||
N, M = map(int, input().split())
|
||||
A = list(map(int, input().split()))
|
||||
S = [0]
|
||||
for i in range(N):
|
||||
S.append(S[-1] + A[i])
|
||||
for _ in range(M):
|
||||
i, j = map(int, input().split())
|
||||
print(S[j] - S[i - 1])
|
||||
Reference in New Issue
Block a user