Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#2 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#3 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#4 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#5 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#6 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#7 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#8 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#9 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#10 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#11 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#12 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#13 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
||
#14 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import sys ^ main.c:1:11: error: expected ';' after top level declarator import sys ^ ; 2 errors generated. |
import sys sys.setrecursionlimit(10500) N = input() linea = input() C = input() consultas = [] for i in range(0,int(C)): con = input() consultas.append( [int(x) for x in con.split()]) arreglo= [int(x) for x in linea.split()] def suma_num(primera, ultima, arreglo): if primera < ultima: return(arreglo[primera] + arreglo[ultima] + suma_num(primera+1, ultima-1, arreglo)) elif primera > ultima: return(0) else: return(arreglo[primera]) for i in consultas: suma = 0 primera = i[0] ultima = i[1] print(suma_num(primera, ultima, arreglo))