Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.017 s | 3 KBi |
#2 |
Correcto
|
0.016 s | 3 KBi |
#3 |
Correcto
|
0.017 s | 3 KBi |
#4 |
Correcto
|
0.019 s | 3 KBi |
#5 |
Correcto
|
0.041 s | 5 KBi |
#6 |
Correcto
|
0.017 s | 3 KBi |
#7 |
Correcto
|
0.021 s | 3 KBi |
#8 |
Correcto
|
0.04 s | 5 KBi |
#9 |
Correcto
|
0.026 s | 7 KBi |
#10 |
Correcto
|
0.021 s | 3 KBi |
#11 |
Correcto
|
0.035 s | 5 KBi |
#12 |
Correcto
|
0.021 s | 3 KBi |
length = int(input()) numbers = [int(x) for x in input().split()] def ordenado(numbers, length): for i in range(0, length-1): if numbers[i]>numbers[i+1]: return "Desordenado" return "Ordenado" print(ordenado(numbers, length))