Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.042 s | 4 KBi |
#2 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.026 s | 3 KBi |
#3 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.035 s | 3 KBi |
#4 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.033 s | 3 KBi |
#5 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.038 s | 5 KBi |
#6 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.031 s | 3 KBi |
#7 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.029 s | 3 KBi |
#8 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.035 s | 7 KBi |
#9 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.052 s | 8 KBi |
#10 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.051 s | 9 KBi |
#11 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.043 s | 9 KBi |
#12 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.046 s | 9 KBi |
#13 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.052 s | 9 KBi |
#14 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 4, in <module> qs = [list(map(int, input.split(' '))) for _ in range(n_c)] NameError: name 'n_c' is not defined |
0.054 s | 9 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_c)] sums = [] for q0, q1 in qs: sums.append(sum(arr[q0:q1+1])) print('\n'.join([str(s) for s in sums]))