Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.026 s | 3 KBi |
#2 |
Correcto
|
0.031 s | 3 KBi |
#3 |
Correcto
|
0.028 s | 3 KBi |
#4 |
Correcto
|
0.026 s | 3 KBi |
#5 |
Correcto
|
0.034 s | 3 KBi |
#6 |
Correcto
|
0.024 s | 3 KBi |
#7 |
Correcto
|
0.045 s | 3 KBi |
#8 |
Correcto
|
0.025 s | 3 KBi |
#9 |
Correcto
|
0.03 s | 3 KBi |
#10 |
Correcto
|
0.026 s | 3 KBi |
#11 |
Correcto
|
0.05 s | 3 KBi |
#12 |
Correcto
|
0.025 s | 3 KBi |
n = int(input()) list_n = [int(x) for x in input().split()] result = "Ordenado" if n > 1: for i in range(1, n): if list_n[i - 1] > list_n[i]: result = "Desordenado" break print(result)