█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 3368

Problema 0x9d - ¿Está ordenado?

  • Autor: MiguelS1112
  • Fecha: 2021-03-12 14:46:26 UTC (Hace alrededor de 3 años)
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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.027 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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.028 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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.026 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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.056 s 6 KBi
#5
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.024 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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.035 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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.052 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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.025 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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.025 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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.025 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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.023 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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.025 s 3 KBi
Puntos totales: 0 / 100

Código

from sys import stdin

s = stdin.readline().strip().split()
sorted = s.sort()
res = "Ordenado"
for i in s:
    if s[i] != sorted[i]:
        res = "Desordenado"
        break
print(res)