Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.037 s | 4 KBi |
#2 |
Correcto
|
0.069 s | 4 KBi |
#3 |
Correcto
|
0.05 s | 4 KBi |
#4 |
Correcto
|
0.039 s | 4 KBi |
#5 |
Correcto
|
0.034 s | 4 KBi |
#6 |
Correcto
|
0.074 s | 4 KBi |
#7 |
Correcto
|
0.032 s | 4 KBi |
#8 |
Correcto
|
0.071 s | 4 KBi |
#9 |
Correcto
|
0.038 s | 4 KBi |
#10 |
Correcto
|
0.037 s | 4 KBi |
#11 |
Incorrecto
|
0.04 s | 4 KBi |
#12 |
Incorrecto
|
0.038 s | 4 KBi |
import re n = int(input()) list = [int(x) for x in re.findall("-?\d", input())] result = "Ordenado" if n > 1: for i in range(1, n): if list[i - 1] > list[i]: result = "Desordenado" break print(result)