Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.02 s | 3 KBi |
#2 |
Correcto
|
0.031 s | 3 KBi |
#3 |
Correcto
|
0.036 s | 7 KBi |
#4 |
Correcto
|
0.03 s | 3 KBi |
#5 |
Correcto
|
0.036 s | 3 KBi |
#6 |
Correcto
|
0.026 s | 3 KBi |
#7 |
Correcto
|
0.051 s | 3 KBi |
#8 |
Correcto
|
0.065 s | 3 KBi |
#9 |
Correcto
|
0.039 s | 3 KBi |
#10 |
Correcto
|
0.062 s | 3 KBi |
#11 |
Incorrecto
|
0.045 s | 3 KBi |
#12 |
Correcto
|
0.075 s | 3 KBi |
#13 |
Incorrecto
|
0.048 s | 3 KBi |
#14 |
Correcto
|
0.056 s | 3 KBi |
#15 |
Correcto
|
0.055 s | 3 KBi |
#16 |
Correcto
|
0.064 s | 3 KBi |
#17 |
Correcto
|
0.058 s | 3 KBi |
#18 |
Correcto
|
0.059 s | 3 KBi |
#19 |
Incorrecto
|
0.067 s | 3 KBi |
#20 |
Correcto
|
0.058 s | 3 KBi |
#21 |
Correcto
|
0.046 s | 3 KBi |
#22 |
Correcto
|
0.057 s | 3 KBi |
def string_edge(s): size = 0 left_index = 0 for right_index in range(1, len(s)): left = s[left_index] right = s[right_index] if left_index > 0 and left != right: left_index = 0 if left == right: left_index += 1 size = left_index return size s = input() print(string_edge(s))