Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.029 s | 3 KBi |
#2 |
Correcto
|
0.02 s | 3 KBi |
#3 |
Correcto
|
0.028 s | 3 KBi |
#4 |
Correcto
|
0.021 s | 3 KBi |
#5 |
Correcto
|
0.028 s | 3 KBi |
#6 |
Correcto
|
0.028 s | 3 KBi |
#7 |
Correcto
|
0.027 s | 3 KBi |
#8 |
Correcto
|
0.021 s | 3 KBi |
#9 |
Correcto
|
0.02 s | 3 KBi |
#10 |
Correcto
|
0.017 s | 3 KBi |
#11 |
Correcto
|
0.072 s | 3 KBi |
#12 |
Correcto
|
0.094 s | 4 KBi |
#13 |
Correcto
|
0.049 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 25, in <module> sort(arr, 0, n - 1) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 20, in sort sort(arr, l, p - 1) [Previous line repeated 993 more times] File "script.py", line 19, in sort p = generate_partition(arr, l, h) File "script.py", line 8, in generate_partition for j in range(l, h): RecursionError: maximum recursion depth exceeded in comparison |
0.332 s | 4 KBi |
#15 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 25, in <module> sort(arr, 0, n - 1) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 20, in sort sort(arr, l, p - 1) [Previous line repeated 993 more times] File "script.py", line 19, in sort p = generate_partition(arr, l, h) File "script.py", line 8, in generate_partition for j in range(l, h): RecursionError: maximum recursion depth exceeded in comparison |
0.173 s | 4 KBi |
#16 |
Error en tiempo de ejecución (NZEC)
Exited with error status 1 Traceback (most recent call last): File "script.py", line 25, in <module> sort(arr, 0, n - 1) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 20, in sort sort(arr, l, p - 1) [Previous line repeated 993 more times] File "script.py", line 19, in sort p = generate_partition(arr, l, h) File "script.py", line 8, in generate_partition for j in range(l, h): RecursionError: maximum recursion depth exceeded in comparison |
0.173 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 25, in <module> sort(arr, 0, n - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 21, in sort sort(arr, p + 1, h) File "script.py", line 20, in sort sort(arr, l, p - 1) File "script.py", line 19, in sort p = generate_partition(arr, l, h) File "script.py", line 8, in generate_partition for j in range(l, h): RecursionError: maximum recursion depth exceeded in comparison |
0.135 s | 4 KBi |
#18 |
Correcto
|
0.136 s | 3 KBi |
#19 |
Correcto
|
0.033 s | 3 KBi |
#20 |
Correcto
|
0.029 s | 3 KBi |
def swap(arr, i, j): arr[i], arr[j] = arr[j], arr[i] def generate_partition(arr, l, h): i = l - 1 p = arr[h] for j in range(l, h): if arr[j] <= p: i = i + 1 swap(arr, i, j) swap(arr, i + 1, h) return i + 1 def sort(arr, l, h): if len(arr) == 1: return arr if (l < h): p = generate_partition(arr, l, h) sort(arr, l, p - 1) sort(arr, p + 1, h) n = int(input()) arr = [int(x) for x in input().split(" ")] sort(arr, 0, n - 1) for i in arr: print(i, end = " ")