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

Envío 4369

Problema 0x9d - ¿Está ordenado?

  • Autor: valenvila00
  • Fecha: 2021-06-13 23:49:59 UTC (Hace casi 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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
0.019 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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
0.02 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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
0.023 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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
0.027 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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
0.019 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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
0.021 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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
0.027 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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
0.024 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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
0.029 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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
0.02 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 5, in <module>
    if nums[n] > nums[n+1]:
IndexError: list index out of range
0.029 s 3 KBi
Puntos totales: 0 / 100

Código

lenght_of_nums = input()
nums = input()
nums = nums.split(' ')
for n in range(len(nums)):
    if nums[n] > nums[n+1]:
        continue
    else:
        print('Desordenado')
print('Ordenado')