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

Envío 7195

Problema 0xde - Ordenar un arreglo grande

  • Autor: Jorgito
  • Fecha: 2023-11-06 16:52:29 UTC (Hace 6 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 11, in <module>
    print(" ".join(map(str, bubblesort(l))))
TypeError: 'NoneType' object is not iterable
0.013 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 11, in <module>
    print(" ".join(map(str, bubblesort(l))))
TypeError: 'NoneType' object is not iterable
0.01 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 11, in <module>
    print(" ".join(map(str, bubblesort(l))))
TypeError: 'NoneType' object is not iterable
0.013 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 11, in <module>
    print(" ".join(map(str, bubblesort(l))))
TypeError: 'NoneType' object is not iterable
0.012 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 11, in <module>
    print(" ".join(map(str, bubblesort(l))))
TypeError: 'NoneType' object is not iterable
0.009 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 11, in <module>
    print(" ".join(map(str, bubblesort(l))))
TypeError: 'NoneType' object is not iterable
0.01 s 3 KBi
#7
Tiempo límite excedido
1.596 s 4 KBi
#8
Tiempo límite excedido
1.553 s 6 KBi
#9
Tiempo límite excedido
1.558 s 4 KBi
#10
Tiempo límite excedido
1.581 s 8 KBi
#11
Tiempo límite excedido
1.574 s 14 KBi
#12
Tiempo límite excedido
1.561 s 14 KBi
#13
Tiempo límite excedido
1.549 s 14 KBi
#14
Tiempo límite excedido
1.511 s 14 KBi
#15
Tiempo límite excedido
1.584 s 14 KBi
#16
Tiempo límite excedido
1.541 s 14 KBi
#17
Tiempo límite excedido
1.557 s 14 KBi
#18
Tiempo límite excedido
1.589 s 14 KBi
#19
Tiempo límite excedido
1.585 s 14 KBi
#20
Tiempo límite excedido
1.529 s 4 KBi
#21
Tiempo límite excedido
1.572 s 14 KBi
#22
Tiempo límite excedido
1.539 s 14 KBi
#23
Tiempo límite excedido
1.56 s 14 KBi
#24
Tiempo límite excedido
1.559 s 15 KBi
#25
Tiempo límite excedido
1.576 s 15 KBi
#26
Tiempo límite excedido
1.573 s 14 KBi
#27
Tiempo límite excedido
1.568 s 14 KBi
Puntos totales: 0 / 100

Código

def bubblesort(lista):
    n = len(lista)
    for i in range(n):
        for j in range(0, n-i-1):
            if lista[j] > lista[j+1]:
                lista[j], lista[j+1] = lista[j+1], lista[j]

if __name__ == '__main__':
    N = int(input())
    l = list(map(int, input().split(" ")))
    print(" ".join(map(str, bubblesort(l))))