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

Envío 3367

Problema 0x9d - ¿Está ordenado?

  • Autor: MiguelS1112
  • Fecha: 2021-03-12 14:46:18 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.032 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.025 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.058 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.059 s 4 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.027 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.029 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.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 7, in <module>
    if s[i] != sorted[i]:
TypeError: list indices must be integers or slices, not str
0.026 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.023 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.038 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.031 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.026 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)