We define the score of a string to be the length of the longest substring that contains only the characters 'a', 'b', or 'c'. For example, the word "candle" has a score of 2 (from the substring "ca").
Let S be the sum of the scores of all the strings in this file . What are the last three digits of S?
Click here to open the file.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
A good time to use regular expressions. I first stuffed the strings into an array that I could import.