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

Envío 2649

Problema 0x9d - ¿Está ordenado?

  • Autor: yesidays
  • Fecha: 2021-01-19 05:15:55 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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '1 2 3 4 5'
0.022 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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '5 4 3 2 1'
0.032 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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '0 3 2 2 1 5 4 5 0 1'
0.034 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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '3 2 4 1 2 1 3 3 5 5'
0.025 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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '4 5 5 2 1 3 5 3 1 1'
0.032 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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '1 1 1 1 1 3 3 5 5 5'
0.032 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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '1 2 3 3 3 4 4 4 4 4'
0.022 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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '0 0 0 1 1 1 1 2 2 2'
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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '-916271954 661059257 478664722 132338074 -171124553 878438626 37584288 874853458 -694283744 -21744796 -700662750 -861991287 -591400379 -451392421 -387170014 -295248241 -377342369 -680531262 -62249692
0.027 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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '-86818186 -22114447 831023189 -64267162 -140674830 -678549552 884229599 -555575498 546506748 -286912325 783146620 277832786 -240690560 612629301 131515661 -651513885 561987230 -728648016 474828400 59
0.027 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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '-993240437 -956108105 -947143004 -924388464 -922795073 -910202929 -903166164 -860705528 -851690159 -838049471 -829271580 -828211977 -807764920 -805927626 -773587911 -681639938 -639848423 -624989360 -
0.025 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 2, in <module>
    numbers = int(input())
ValueError: invalid literal for int() with base 10: '-994371375 -988005287 -974423316 -929392851 -922095902 -906209363 -896430915 -894871356 -865943219 -862590063 -860079344 -832004825 -813676920 -792632052 -777526153 -774910874 -764477295 -711179851 -
0.022 s 3 KBi
Puntos totales: 0 / 100

Código

n = int(input())
numbers = int(input())
result = 'Desordenado'
if n > 0:
  for i in range(len(numbers)):
    j = i + 1
    for j in range(len(numbers)):
      if numbers[j] < numbers[i]:
        result = 'Ordenado'
      else:
        break