Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.025 s | 3 KBi |
#2 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.027 s | 3 KBi |
#3 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.027 s | 3 KBi |
#4 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.055 s | 3 KBi |
#5 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.048 s | 3 KBi |
#6 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.028 s | 3 KBi |
#7 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.027 s | 3 KBi |
#8 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.022 s | 3 KBi |
#9 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.052 s | 3 KBi |
#10 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.031 s | 3 KBi |
#11 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.024 s | 3 KBi |
#12 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 8, in <module> if s[i] != sorted[i]: TypeError: 'NoneType' object is not subscriptable |
0.025 s | 3 KBi |
from sys import stdin n = stdin.readline().strip() s = list(map(int, stdin.readline().strip().split())) sorted = s.sort() res = "Ordenado" for i in range(len(s)): if s[i] != sorted[i]: res = "Desordenado" break print(res)