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 6, in <module> if b[i] > b[i + 1]: IndexError: list index out of range |
0.024 s | 3 KBi |
#2 |
Correcto
|
0.022 s | 3 KBi |
#3 |
Correcto
|
0.025 s | 3 KBi |
#4 |
Correcto
|
0.033 s | 7 KBi |
#5 |
Correcto
|
0.025 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 6, in <module> if b[i] > b[i + 1]: IndexError: list index out of range |
0.022 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 6, in <module> if b[i] > b[i + 1]: IndexError: list index out of range |
0.03 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 6, in <module> if b[i] > b[i + 1]: IndexError: list index out of range |
0.033 s | 7 KBi |
#9 |
Correcto
|
0.023 s | 5 KBi |
#10 |
Correcto
|
0.026 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 6, in <module> if b[i] > b[i + 1]: IndexError: list index out of range |
0.023 s | 4 KBi |
#12 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 6, in <module> if b[i] > b[i + 1]: IndexError: list index out of range |
0.019 s | 5 KBi |
a = input() b = [int(x) for x in input().split()] flag = 1 for i in range(0, int(a)): if b[i] > b[i + 1]: flag = 0 break if flag == 1: print("Ordenado") else: print("Desordenado")