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

Envío 2652

Problema 0x9d - ¿Está ordenado?

  • Autor: yesidays
  • Fecha: 2021-01-19 05:23:52 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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
0.023 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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
0.031 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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
0.023 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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
0.023 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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
0.029 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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
0.032 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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
0.032 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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
0.023 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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
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 3, in <module>
    numbers = numbers.input()
AttributeError: 'str' object has no attribute 'input'
0.022 s 3 KBi
Puntos totales: 0 / 100

Código

n = input()
numbers = input()
numbers = numbers.input()

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