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