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 8, in <module> print(ordenado(N,arreglo)) File "script.py", line 5, in ordenado if arreglo[i] > arreglo[i + 1]: IndexError: list index out of range |
0.017 s | 3 KBi |
#2 |
![]() |
0.022 s | 3 KBi |
#3 |
![]() |
0.008 s | 3 KBi |
#4 |
![]() |
0.017 s | 3 KBi |
#5 |
![]() |
0.019 s | 3 KBi |
#6 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> print(ordenado(N,arreglo)) File "script.py", line 5, in ordenado if arreglo[i] > arreglo[i + 1]: IndexError: list index out of range |
0.024 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 8, in <module> print(ordenado(N,arreglo)) File "script.py", line 5, in ordenado if arreglo[i] > arreglo[i + 1]: IndexError: list index out of range |
0.014 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 8, in <module> print(ordenado(N,arreglo)) File "script.py", line 5, in ordenado if arreglo[i] > arreglo[i + 1]: IndexError: list index out of range |
0.009 s | 3 KBi |
#9 |
![]() |
0.009 s | 3 KBi |
#10 |
![]() |
0.019 s | 3 KBi |
#11 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> print(ordenado(N,arreglo)) File "script.py", line 5, in ordenado if arreglo[i] > arreglo[i + 1]: IndexError: list index out of range |
0.014 s | 3 KBi |
#12 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> print(ordenado(N,arreglo)) File "script.py", line 5, in ordenado if arreglo[i] > arreglo[i + 1]: IndexError: list index out of range |
0.009 s | 3 KBi |
N = int(input()) arreglo = [int(arreglo) for arreglo in input().split()] def ordenado(n,arreglo): for i in range(0,N): if arreglo[i] > arreglo[i + 1]: return("desordenado") return("ordenado") print(ordenado(N,arreglo))