Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.023 s | 3 KBi |
#2 |
Incorrecto
|
0.021 s | 3 KBi |
#3 |
Incorrecto
|
0.023 s | 3 KBi |
#4 |
Incorrecto
|
0.026 s | 6 KBi |
#5 |
Incorrecto
|
0.03 s | 4 KBi |
#6 |
Correcto
|
0.023 s | 3 KBi |
#7 |
Correcto
|
0.024 s | 6 KBi |
#8 |
Correcto
|
0.016 s | 3 KBi |
#9 |
Incorrecto
|
0.024 s | 3 KBi |
#10 |
Incorrecto
|
0.024 s | 6 KBi |
#11 |
Correcto
|
0.023 s | 3 KBi |
#12 |
Correcto
|
0.026 s | 3 KBi |
flag = 1 b = [0, 1, 2, 3, 4, 5, 6, 7] for i in range(0, len(b) - 1): if b[i] < b[i + 1]: continue else: flag = 0 break if flag == 1: print("Ordenado") else: print("Desordenado")