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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.02 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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.02 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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.022 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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.024 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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.023 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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.02 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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.031 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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.026 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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.021 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 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.023 s | 3 KBi |
#13 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.026 s | 3 KBi |
#14 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.024 s | 3 KBi |
#15 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.028 s | 3 KBi |
#16 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.022 s | 3 KBi |
#17 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.023 s | 3 KBi |
#18 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.027 s | 3 KBi |
#19 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.022 s | 3 KBi |
#20 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 14, in <module> res = heapsort(l) File "script.py", line 7, in heapsort res.append(heappop(h)) NameError: name 'h' is not defined |
0.023 s | 3 KBi |
from heapq import heapify, heappop def heapsort(l): heapify(l) res = [] while l: res.append(heappop(h)) return res if __name__ == "__main__": N = int(input()) l = list(map(int, input().split(" "))) res = heapsort(l) print(" ".join(res))