Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.073 s | 3 KBi |
#2 |
Correcto
|
0.038 s | 4 KBi |
#3 |
Correcto
|
0.04 s | 4 KBi |
#4 |
Correcto
|
0.037 s | 4 KBi |
#5 |
Correcto
|
0.044 s | 4 KBi |
#6 |
Correcto
|
0.047 s | 4 KBi |
#7 |
Correcto
|
0.078 s | 3 KBi |
#8 |
Incorrecto
|
0.041 s | 4 KBi |
#9 |
Correcto
|
0.036 s | 4 KBi |
#10 |
Correcto
|
0.037 s | 4 KBi |
#11 |
Correcto
|
0.177 s | 4 KBi |
#12 |
Correcto
|
0.24 s | 9 KBi |
#13 |
Incorrecto
|
0.204 s | 4 KBi |
#14 |
Incorrecto
|
0.082 s | 4 KBi |
#15 |
Incorrecto
|
0.079 s | 4 KBi |
#16 |
Incorrecto
|
0.197 s | 4 KBi |
#17 |
Incorrecto
|
0.263 s | 4 KBi |
#18 |
Incorrecto
|
0.217 s | 4 KBi |
#19 |
Incorrecto
|
0.424 s | 4 KBi |
#20 |
Incorrecto
|
0.205 s | 4 KBi |
import re n = int(input()) list_n = [int(x) for x in re.findall("-?\d", input())] for i in range(n): j = i while j > 0 and list_n[j] < list_n[j-1]: list_n[j], list_n[j - 1] = list_n[j - 1], list_n[j] j -= 1 print(*list_n)