Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.032 s | 3 KBi |
#2 |
Incorrecto
|
0.022 s | 3 KBi |
#3 |
Correcto
|
0.016 s | 3 KBi |
#4 |
Correcto
|
0.017 s | 3 KBi |
#5 |
Incorrecto
|
0.014 s | 3 KBi |
#6 |
Incorrecto
|
0.014 s | 3 KBi |
#7 |
Incorrecto
|
0.025 s | 3 KBi |
#8 |
Incorrecto
|
0.015 s | 3 KBi |
#9 |
Correcto
|
0.014 s | 3 KBi |
#10 |
Incorrecto
|
0.015 s | 3 KBi |
#11 |
Incorrecto
|
0.016 s | 3 KBi |
#12 |
Incorrecto
|
0.017 s | 3 KBi |
total = int(input()) numArray = [int(element) for element in input().split()] sorted = True i = 0 for _ in range(total): if(numArray[i] < numArray[i - 1]): sorted = False break if (sorted) : print ("Ordenado") else : print ("Desordenado")