Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.029 s | 3 KBi |
#2 |
Correcto
|
0.02 s | 3 KBi |
#3 |
Correcto
|
0.024 s | 3 KBi |
#4 |
Correcto
|
0.029 s | 3 KBi |
#5 |
Correcto
|
0.043 s | 8 KBi |
#6 |
Correcto
|
0.022 s | 3 KBi |
#7 |
Correcto
|
0.069 s | 3 KBi |
#8 |
Correcto
|
0.098 s | 3 KBi |
#9 |
Correcto
|
0.091 s | 3 KBi |
#10 |
Correcto
|
0.072 s | 3 KBi |
#11 |
Incorrecto
|
0.071 s | 3 KBi |
#12 |
Correcto
|
0.076 s | 3 KBi |
#13 |
Incorrecto
|
0.074 s | 3 KBi |
#14 |
Correcto
|
0.093 s | 3 KBi |
#15 |
Correcto
|
0.091 s | 3 KBi |
#16 |
Correcto
|
0.087 s | 3 KBi |
#17 |
Correcto
|
0.084 s | 3 KBi |
#18 |
Correcto
|
0.068 s | 3 KBi |
#19 |
Incorrecto
|
0.107 s | 3 KBi |
#20 |
Correcto
|
0.061 s | 3 KBi |
#21 |
Correcto
|
0.082 s | 3 KBi |
#22 |
Correcto
|
0.07 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 else: first_char_index = 0 count = 0 next_chart_index += 1 print(count)