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

Envío 6938

Problema 0x9d - ¿Está ordenado?

  • Autor: Juanes2002
  • Fecha: 2023-03-17 01:09:00 UTC (Hace alrededor de 1 año)
Caso # Resultado Tiempo Memoria
#1
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.016 s 3 KBi
#2
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.009 s 3 KBi
#3
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.008 s 3 KBi
#4
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.016 s 3 KBi
#5
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.016 s 3 KBi
#6
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.008 s 3 KBi
#7
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.008 s 3 KBi
#8
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.014 s 3 KBi
#9
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.008 s 3 KBi
#10
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.017 s 3 KBi
#11
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.014 s 3 KBi
#12
Error en tiempo de ejecución (NZEC)
Exited with error status 1
  File "script.py", line 5
    return("desordenado")
    ^
SyntaxError: 'return' outside function
0.007 s 3 KBi
Puntos totales: 0 / 100

Código

N = int(input())
arreglo = [int(arreglo) for arreglo in input().split()]
for i in range(0,N): 
  if arreglo[i] > arreglo[i + 1]:
   return("desordenado")
return("ordenado")