Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.084 s | 4 KBi |
#2 |
Correcto
|
0.072 s | 3 KBi |
#3 |
Correcto
|
0.033 s | 4 KBi |
#4 |
Correcto
|
0.037 s | 4 KBi |
#5 |
Correcto
|
0.033 s | 3 KBi |
#6 |
Correcto
|
0.034 s | 4 KBi |
#7 |
Correcto
|
0.04 s | 4 KBi |
#8 |
Correcto
|
0.03 s | 4 KBi |
#9 |
Correcto
|
0.034 s | 4 KBi |
#10 |
Correcto
|
0.039 s | 4 KBi |
#11 |
Incorrecto
|
0.038 s | 4 KBi |
#12 |
Incorrecto
|
0.076 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)