EasyRating 900
Count the Runs
Count the number of runs (maximal blocks of equal adjacent characters) in the string.
Input
One line.
Output
A count.
Sample 1
Input
aaabbc
Output
3
Sample 2
Input
a
Output
1
Output appears hereOne line.
A count.
aaabbc
3
a
1
Output appears here