Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.029 s | 3 KBi |
#2 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.034 s | 3 KBi |
#3 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.032 s | 3 KBi |
#4 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.034 s | 4 KBi |
#5 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.031 s | 3 KBi |
#6 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.032 s | 3 KBi |
#7 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.025 s | 3 KBi |
#8 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.036 s | 3 KBi |
#9 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.024 s | 3 KBi |
#10 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.027 s | 3 KBi |
#11 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.024 s | 3 KBi |
#12 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.023 s | 3 KBi |
#13 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.033 s | 3 KBi |
#14 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 File "script.py", line 8 partial[n+1] = partial[n] + p) ^ SyntaxError: unmatched ')' |
0.032 s | 3 KBi |
n_arr = int(input()) arr = [int(i) for i in input().split(' ')] n_q = int(input()) qs = [list(map(int, input().split(' '))) for _ in range(n_q)] partial = [0]*(n_arr+1) for n, p in enumerate(arr): partial[n+1] = partial[n] + p) for q0, q1 in qs: print(partial[q1+1]-partial[q0])