Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.025 s | 3 KBi |
#2 |
Correcto
|
0.027 s | 5 KBi |
#3 |
Correcto
|
0.016 s | 3 KBi |
#4 |
Correcto
|
0.029 s | 3 KBi |
#5 |
Correcto
|
0.023 s | 3 KBi |
#6 |
Correcto
|
0.027 s | 6 KBi |
#7 |
Correcto
|
0.094 s | 3 KBi |
#8 |
Correcto
|
0.093 s | 5 KBi |
#9 |
Correcto
|
0.094 s | 5 KBi |
#10 |
Correcto
|
0.087 s | 3 KBi |
#11 |
Correcto
|
0.071 s | 3 KBi |
#12 |
Correcto
|
0.106 s | 3 KBi |
#13 |
Correcto
|
0.096 s | 5 KBi |
#14 |
Correcto
|
0.087 s | 3 KBi |
#15 |
Correcto
|
0.078 s | 4 KBi |
#16 |
Correcto
|
0.067 s | 3 KBi |
#17 |
Correcto
|
0.071 s | 3 KBi |
#18 |
Correcto
|
0.095 s | 7 KBi |
#19 |
Correcto
|
0.084 s | 3 KBi |
#20 |
Correcto
|
0.124 s | 3 KBi |
#21 |
Correcto
|
0.113 s | 3 KBi |
#22 |
Correcto
|
0.128 s | 3 KBi |
string = input() first_char_index = 0 next_chart_index = 1 count = 0 while next_chart_index < len(string): current_char = string[next_chart_index] if string[first_char_index] == current_char: count += 1 first_char_index += 1 elif string[next_chart_index] != string[next_chart_index - 1]: first_char_index = 0 count = 0 next_chart_index += 1 print(0 if count == len(string) else count)