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

Envío 7225

Problema 0x9d - ¿Está ordenado?

  • Autor: Jorgito
  • Fecha: 2024-02-18 20:41:00 UTC (Hace 10 meses)
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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.011 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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.011 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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.009 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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.008 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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.011 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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.009 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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.009 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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.012 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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.011 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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.008 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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.01 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 1, in <module>
    lista = [int(n) for n in input().spli()]
AttributeError: 'str' object has no attribute 'spli'
0.012 s 3 KBi
Puntos totales: 0 / 100

Código

lista = [int(n) for n in input().spli()]

if sorted(lista) == lista:
    print('Ordenado')
else:
    print('Desordenado')