Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.026 s | 3 KBi |
#2 |
Correcto
|
0.025 s | 3 KBi |
#3 |
Correcto
|
0.029 s | 3 KBi |
#4 |
Correcto
|
0.033 s | 3 KBi |
#5 |
Correcto
|
0.025 s | 3 KBi |
#6 |
Correcto
|
0.02 s | 3 KBi |
#7 |
Correcto
|
0.07 s | 3 KBi |
#8 |
Correcto
|
0.097 s | 3 KBi |
#9 |
Correcto
|
0.071 s | 3 KBi |
#10 |
Correcto
|
0.064 s | 3 KBi |
#11 |
Correcto
|
0.065 s | 3 KBi |
#12 |
Correcto
|
0.067 s | 3 KBi |
#13 |
Incorrecto
|
0.096 s | 3 KBi |
#14 |
Incorrecto
|
0.062 s | 3 KBi |
#15 |
Incorrecto
|
0.074 s | 3 KBi |
#16 |
Incorrecto
|
0.067 s | 3 KBi |
#17 |
Incorrecto
|
0.073 s | 8 KBi |
#18 |
Incorrecto
|
0.026 s | 3 KBi |
#19 |
Incorrecto
|
0.065 s | 3 KBi |
#20 |
Correcto
|
0.027 s | 3 KBi |
#21 |
Incorrecto
|
0.018 s | 3 KBi |
#22 |
Correcto
|
0.028 s | 3 KBi |
def string_edge(s): next_index = 1 size = 1 while True: current_index = 0 next_index = s.find(s[0], next_index) if next_index == -1: return 0 while True: current_index += 1 next_index += 1 if next_index == len(s): return size if s[current_index] == s[next_index]: size += 1 else: break s = input() print(string_edge(s))