Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.008 s | 3 KBi |
#2 |
Incorrecto
|
0.011 s | 3 KBi |
#3 |
Incorrecto
|
0.007 s | 3 KBi |
#4 |
Incorrecto
|
0.011 s | 3 KBi |
#5 |
Incorrecto
|
0.011 s | 3 KBi |
#6 |
Incorrecto
|
0.009 s | 3 KBi |
#7 |
Incorrecto
|
0.008 s | 3 KBi |
#8 |
Incorrecto
|
0.013 s | 3 KBi |
#9 |
Incorrecto
|
0.011 s | 2 KBi |
#10 |
Incorrecto
|
0.011 s | 3 KBi |
#11 |
Incorrecto
|
0.009 s | 3 KBi |
#12 |
Incorrecto
|
0.012 s | 3 KBi |
#13 |
Incorrecto
|
0.008 s | 3 KBi |
#14 |
Incorrecto
|
0.011 s | 3 KBi |
#15 |
Incorrecto
|
0.012 s | 3 KBi |
#16 |
Incorrecto
|
0.009 s | 3 KBi |
#17 |
Incorrecto
|
0.012 s | 3 KBi |
#18 |
Incorrecto
|
0.012 s | 3 KBi |
#19 |
Incorrecto
|
0.011 s | 3 KBi |
#20 |
Incorrecto
|
0.012 s | 3 KBi |
#21 |
Incorrecto
|
0.012 s | 3 KBi |
#22 |
Incorrecto
|
0.013 s | 3 KBi |
#23 |
Incorrecto
|
0.012 s | 3 KBi |
#24 |
Incorrecto
|
0.011 s | 3 KBi |
#25 |
Incorrecto
|
0.012 s | 3 KBi |
#26 |
Incorrecto
|
0.011 s | 3 KBi |
#27 |
Incorrecto
|
0.012 s | 3 KBi |
#28 |
Incorrecto
|
0.011 s | 3 KBi |
#29 |
Incorrecto
|
0.01 s | 3 KBi |
#30 |
Incorrecto
|
0.007 s | 3 KBi |
#31 |
Incorrecto
|
0.011 s | 3 KBi |
#32 |
Incorrecto
|
0.007 s | 3 KBi |
#33 |
Incorrecto
|
0.013 s | 3 KBi |
#34 |
Incorrecto
|
0.013 s | 3 KBi |
#35 |
Incorrecto
|
0.013 s | 3 KBi |
#36 |
Incorrecto
|
0.008 s | 3 KBi |
def min_movimientos_tortuga(N, Y): clockwise_distance = (Y - 0 + N) % N counterclockwise_distance = (N - Y + 0 + N) % N return min(clockwise_distance, counterclockwise_distance)