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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.031 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.024 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.026 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.03 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.028 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.03 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.021 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.021 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.024 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.029 s | 7 KBi |
#14 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.027 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.024 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.036 s | 4 KBi |
#17 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.031 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.032 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.031 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 15, in <module> print(" ".join(res)) TypeError: sequence item 0: expected str instance, int found |
0.023 s | 3 KBi |
from heapq import heapify, heappop def heapsort(l): heapify(l) res = [] while l: res.append(heappop(l)) return res if __name__ == "__main__": N = int(input()) l = list(map(int, input().split(" "))) res = heapsort(l) print(" ".join(res))