Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.035 s | 6 KBi |
#2 |
Incorrecto
|
0.03 s | 3 KBi |
#3 |
Incorrecto
|
0.043 s | 7 KBi |
#4 |
Incorrecto
|
0.028 s | 3 KBi |
#5 |
Incorrecto
|
0.03 s | 3 KBi |
#6 |
Incorrecto
|
0.029 s | 3 KBi |
#7 |
Incorrecto
|
0.03 s | 3 KBi |
#8 |
Incorrecto
|
0.029 s | 3 KBi |
#9 |
Incorrecto
|
0.029 s | 3 KBi |
#10 |
Incorrecto
|
0.029 s | 3 KBi |
#11 |
Incorrecto
|
0.027 s | 3 KBi |
#12 |
Incorrecto
|
0.029 s | 3 KBi |
#13 |
Incorrecto
|
0.031 s | 3 KBi |
#14 |
Incorrecto
|
0.031 s | 3 KBi |
#15 |
Incorrecto
|
0.036 s | 3 KBi |
#16 |
Incorrecto
|
0.023 s | 3 KBi |
#17 |
Incorrecto
|
0.027 s | 3 KBi |
#18 |
Incorrecto
|
0.031 s | 3 KBi |
#19 |
Incorrecto
|
0.03 s | 3 KBi |
#20 |
Incorrecto
|
0.028 s | 3 KBi |
def bubble_sort(): """ Bubble sort technique """ n = int(input()) integers = input() a = list(map(int, integers.split(" "))) i = 0 while i < n: j = 0 k = 1 while k < n: if a[k] < a[j]: x = a[k] a[k] = a[j] a[j] = x j += 1 k += 1 i += 1 a = " ".join(str(number) for number in a) print(a)